pulumi/pulumi-java

Document unit testing in Java

Opened this issue ยท 3 comments

Hello!

  • Vote on this issue by adding a ๐Ÿ‘ reaction
  • If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)

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 with pulumi.runtime.setMocks and Go with pulumi.MockResourceArgs (and friends).
Whilst integration testing is certainly possible, the feedback from the unit tests would be much faster

Affected area/feature

Unit testing

@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.