Hey! There is a way for testing infra with XUnit a...
# dotnet
d
Hey! There is a way for testing infra with XUnit and C# ? Any samples ?
t
No examples yet, but that's on the todo list
Maybe you can get some inspiration looking at https://github.com/pulumi/pulumi/tree/master/sdk/dotnet/Pulumi.Tests
d
Thanks, they would seem to be unit tests, but I'd like to set up e2e tests.
t
e2e tests with XUnit? Like, deploying a complete infrastructure and then making queries to your app?
d
My bad for the testing framework, but yes, Just a way to testing infrastructure with C#.
t
IMO e2e doesn't depend much on the language or even the deployment tool... You run the deployment as a black box and then test its external properties.
w
We use xUnit for integration tests too; makes sense when you're already using it for unit tests.