docs icon indicating copy to clipboard operation
docs copied to clipboard

Unit Testing: no content for Java or YAML

Open Pante opened this issue 2 years ago • 3 comments

File: themes/default/content/docs/guides/testing/unit.md

Most of the pages lack examples for testing in Java. It'll be great if they were added.

Pante avatar Feb 08 '23 03:02 Pante

Thanks for pointing this out, @Pante. We'll try to work on adding testing docs for Java. I've created an associated trackin gissue in the pulumi-java repo as well: pulumi/pulumi-java#979

abhinav avatar Feb 10 '23 16:02 abhinav

Just came across this today. For someone on IaC Core (@Frassle?): Does Java have the mocking classes in its SDK?

If not, we need to add a tab, but indicate that it's not supported. If it does, we need to produce a working example for it.

Optionally, if we deliberately did not add Java support because it's not our recommended approach, we should note this at the top for all languages and point the reader to integration tests (or whatever we recommend).

We should also add a tab for YAML to indicate that mocking is not supported in YAML.

jkodroff avatar Oct 31 '25 03:10 jkodroff

Does Java have the mocking classes in its SDK?

Looks like it, see the com.pulumi.test.Mocks package.

Frassle avatar Oct 31 '25 14:10 Frassle