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

JSON Schema for test code #211

Merged
merged 5 commits into from
Jan 17, 2024
Merged

JSON Schema for test code #211

merged 5 commits into from
Jan 17, 2024

Conversation

big-andy-coates
Copy link
Member

@big-andy-coates big-andy-coates commented Jan 16, 2024

fixes: #7

Add a generateTestJsonSchema task that builds JSON Schemas for any classes in the test source set annotated with @GeneratesSchema.

NOTE: due to a bug in the org.javamodularity.moduleplugin Gradle plugin, generated resources are NOT patched in to the module during unit testing. This should be fixed once java9-modularity/gradle-modules-plugin#228 is merged and released.

fixes: #7

Add a `generateTestJsonSchema` task that builds JSON Schemas for any classes in the `test` source set annotated with `@GeneratesSchema`.
@big-andy-coates big-andy-coates added the enhancement New feature or request label Jan 16, 2024
@big-andy-coates big-andy-coates requested a review from a team as a code owner January 16, 2024 16:36
@big-andy-coates big-andy-coates merged commit 01c5490 into main Jan 17, 2024
6 checks passed
@big-andy-coates big-andy-coates deleted the test-schema branch January 17, 2024 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wire up an instance of GenerateJsonSchemaTask to generate schemas for test classes.
1 participant