Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document unit testing in Java #1315

Open
imavroukakis opened this issue Jan 31, 2024 · 3 comments
Open

Document unit testing in Java #1315

imavroukakis opened this issue Jan 31, 2024 · 3 comments
Labels
area/testing kind/enhancement Improvements or new features

Comments

@imavroukakis
Copy link

imavroukakis commented Jan 31, 2024

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 imavroukakis added kind/enhancement Improvements or new features needs-triage Needs attention from the triage team labels Jan 31, 2024
@scottslowe scottslowe changed the title Provide unit tests scaffolding Provide unit tests scaffolding for Java Jan 31, 2024
@justinvp justinvp added area/testing and removed needs-triage Needs attention from the triage team labels Feb 2, 2024
@justinvp
Copy link
Member

justinvp commented Feb 2, 2024

@imavroukakis, see https://github.com/pulumi/pulumi-java/tree/main/tests/examples/testing-unit-java

@imavroukakis
Copy link
Author

@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 ? 😆

@joeduffy joeduffy changed the title Provide unit tests scaffolding for Java Document unit testing in Java Feb 10, 2024
@joeduffy
Copy link
Member

Agree with Ioannis here -- we should document this over here: https://www.pulumi.com/docs/using-pulumi/testing/unit/! Changed the title accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/testing kind/enhancement Improvements or new features
Projects
None yet
Development

No branches or pull requests

3 participants