https://pulumi.com logo
#dotnet
Title
# dotnet
d

delightful-lizard-41466

11/13/2019, 2:00 PM
Hey! There is a way for testing infra with XUnit and C# ? Any samples ?
t

tall-librarian-49374

11/13/2019, 2:17 PM
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

delightful-lizard-41466

11/13/2019, 3:13 PM
Thanks, they would seem to be unit tests, but I'd like to set up e2e tests.
t

tall-librarian-49374

11/13/2019, 4:17 PM
e2e tests with XUnit? Like, deploying a complete infrastructure and then making queries to your app?
d

delightful-lizard-41466

11/13/2019, 5:56 PM
My bad for the testing framework, but yes, Just a way to testing infrastructure with C#.
t

tall-librarian-49374

11/13/2019, 6:04 PM
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

worried-city-86458

11/13/2019, 6:44 PM
We use xUnit for integration tests too; makes sense when you're already using it for unit tests.