https://pulumi.com logo
#general
Title
# general
g

gorgeous-accountant-60580

09/20/2022, 1:57 PM
Hello! Is it possible to write unit tests to validate that IgnoreChanges is working correctly?
b

billowy-plastic-61471

09/20/2022, 3:26 PM
Hi Morten - side question - how do you test Pulumi code anyways? I never got it to work. I tested individual Lambda functions & their code of course, but I could never figure out how to test Pulumi stuff & if those tests even have any value?
g

gorgeous-accountant-60580

09/20/2022, 3:34 PM
@billowy-plastic-61471 we do this, pretty much straight from the docs: https://www.pulumi.com/docs/guides/testing/unit/ We’ve got some libraries that define component resources, and we do assertions on the output from those
b

billowy-plastic-61471

09/20/2022, 3:36 PM
I’ll revisit this, it’s been a while. So the main advantage is to have regression tests I guess…
To make sure nobody changes any of the existing resources in an unwanted way
2 Views