Skip to content

Unit testing functions implementing these SQL extensions #39

@KennethThompson

Description

@KennethThompson

Using your examples I produced a very simply HTTP trigger function that reads all of the values from a target table. The function works perfectly when I execute + run the debug.

However, I cannot seem to get my unit testing to work with the SQL extensions. Everything seems to be OK, but the IEnumerable for my return objects never gets populated.

I've tried both xunit and the standard microsoft unit testing. Both refuse to populate the List<> I pass in, although the function is returning OkObjectResult.

What am I missing here? Should I pass in something other than a List<> to be populated?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions