Open
Description
Hello!
- Vote on this issue by adding a 👍 reaction
- If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)
Issue details
There are currently overload test functions defined that allow you to test the outputs of a mock pulumi stack during unit testing, however there is no support for this of stack output testing when using a service provider.
The TestWithServiceProviderAsync
doesn't offer any overloads that expose the outputs from a stack. Link here.
But there are examples of the TestAsync
function that do exactly this. Link here.
Ideally the TestWithServiceProviderAsync
function would have an expanded overload to support a return type with Task<(ImmutableArray<Resource> Resources, IDictionary<string, object?> Outputs)
Affected area/feature
dotnet SDK testing