Generate configuration parameters overview - #5932
Merged
mpkorstanje merged 112 commits intoSep 17, 2026
Merged
Conversation
mpkorstanje
force-pushed
the
feature/generate-configuration-parameters-overview
branch
from
July 30, 2026 21:38
c73e0df to
14ffed5
Compare
mpkorstanje
commented
Jul 30, 2026
mpkorstanje
force-pushed
the
feature/generate-configuration-parameters-overview
branch
from
July 30, 2026 22:58
f02ff2f to
3295a99
Compare
marcphilipp
reviewed
Jul 31, 2026
mpkorstanje
force-pushed
the
feature/generate-configuration-parameters-overview
branch
2 times, most recently
from
July 31, 2026 08:52
6c063a1 to
e6ab635
Compare
mpkorstanje
force-pushed
the
feature/generate-configuration-parameters-overview
branch
from
July 31, 2026 09:57
e6ab635 to
314e8fd
Compare
marcphilipp
reviewed
Sep 13, 2026
…m-configuration.adoc Co-authored-by: Marc Philipp <mail@marcphilipp.de>
Co-authored-by: Marc Philipp <mail@marcphilipp.de>
…/Execution.java Co-authored-by: Marc Philipp <mail@marcphilipp.de>
…nstants.java Co-authored-by: Marc Philipp <mail@marcphilipp.de>
mpkorstanje
commented
Sep 16, 2026
This comment has been minimized.
This comment has been minimized.
marcphilipp
approved these changes
Sep 16, 2026
Member
|
Excellent work! 👍 |
mpkorstanje
deleted the
feature/generate-configuration-parameters-overview
branch
September 17, 2026 10:32
This was referenced Sep 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Generate
META-INF/junit-platform-configuration-metadata.jsonin the format of Spring Boots Configuration Metadata.Minimal example
The minimal usage:
Produces:
{ "properties": [ { "name": "org.example.property", "description": "A brief multi-line description of this property.", "sourceType": "com.example.app.Constants" } ] }This takes all the information from the obvious places. Of note is that the first paragraph from the doc string is used and the
: {@value}.that we conventionally use is replaced with a..Deprecation
Produces:
{ "properties": [ { "name": "org.example.property", "description": "A brief multi-line description of this property.", "sourceType": "com.example.app.Constants", "deprecated": { } } ] }The empty
deprecatedobject is sufficient to mark a field as deprecated. To fill out the fields in thedeprecatedobject the@Deprecationannotation can be used:Type and default
The type of the parameter can be provided using the
typeproperty of the annotation.Though in practice this will be rarely needed. If the type is not provided, we can take the type of the default value.
When using Enums it is useful to use both type and default value, because arbitrary enums can't be used in an annotation.
Limitations
Metadata.groups,Metadata.hints,Metadata.ignoredare not yet implemented. See: Add configuration parameter hints #6059Property.defaultsupports lists of values, the implementation is intentionally limited to a single value.Closes: #4330
I hereby agree to the terms of the JUnit Contributor License Agreement.
Definition of Done
@APIannotations