https://pulumi.com logo
a

acoustic-candle-40090

10/30/2018, 5:14 AM
Is it possible to do local testing with Pulumi?
đź‘Ť 1
c

creamy-potato-29402

10/30/2018, 5:35 PM
@acoustic-candle-40090 by “local testing” do you mean unit tests?
a

acoustic-candle-40090

10/31/2018, 4:28 AM
That. But also just running my code even.
c

creamy-potato-29402

10/31/2018, 6:06 AM
@acoustic-candle-40090 well Pulumi uses “real languages” do you can write whatever unit tests you want. I’m not sure what you have in mind for “running my code” —
preview
will provide an accurate plan of the resources to be created, but any code inside an
.apply
will not be run until you run the actual application.
So, if you keep code that’s super complex out of
.apply
a
pulumi preview
should mooostly hit all the stuff you care about.