Open imavroukakis opened 7 months ago
@imavroukakis, see https://github.com/pulumi/pulumi-java/tree/main/tests/examples/testing-unit-java
Wow thanks @justinvp ! I failed miserably to spot this - how come it's not in the documentation and are you going to make a fool out of me by posting an actual documentation link ? 😆
Agree with Ioannis here -- we should document this over here: https://www.pulumi.com/docs/using-pulumi/testing/unit/! Changed the title accordingly.
Hello!
Issue details
There doesn't seem to be any unit testing scaffolding support for the Java SDK. Compare and contrast that to the Python API with
pulumi.runtime.Mocks
, TypeScript withpulumi.runtime.setMocks
and Go withpulumi.MockResourceArgs
(and friends). Whilst integration testing is certainly possible, the feedback from the unit tests would be much fasterAffected area/feature
Unit testing