lemon-planet-3566411/13/2019, 5:31 AM
white-balloon-20511/13/2019, 5:02 PM
will never be populated - and the callbacks to
will never run. This does generally significantly limit the value of this kind of testing - it can be used to verify inputs - but not outputs or behavior. There was a follow up article that shows a technique that can allow running unit tests during updates - which can allow verifying things like this: https://www.pulumi.com/blog/unit-testing-infrastructure-in-nodejs-and-mocha/ But frankly in my experience by far the highest value testing you can have is tests that spin up real infrastructure and validate it before tearing down. These can still be “unit tests” in the sense that they test one component at a time - but they can test the actual correctness of your infrastructure. There’s a great project - Pitfall - for doing this kind of testing with Pulumi in Python - see https://pulumi-community.slack.com/archives/CB36DSVSA/p1573146387034300.
lemon-planet-3566411/13/2019, 10:29 PM
mysterious-egg-741511/15/2019, 12:08 AM