-
Notifications
You must be signed in to change notification settings - Fork 71
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
Added variables to ReportEntry #294
Added variables to ReportEntry #294
Conversation
Refer to test method arguments with numbers between curly braces, starting with {0}. Signed-off-by: Mihaly Verhas <misi.verhas@gmail.com>
Progresses (possibly will close) #179 |
I like the change and I appreciate that the syntax aligns with Jupiter's parameter-in-display-name syntax. Unfortunately, the documentation didn't get updated yet and so we can't merge this. Quoting @aepfli and @Bukama "DENIED" "NEXT!" 😜 |
Signed-off-by: Mihaly Verhas <misi.verhas@gmail.com>
… into issue/179-report-entry-improvement � Conflicts: � src/test/java/org/junitpioneer/jupiter/ReportEntryExtensionTests.java
Signed-off-by: Mihaly Verhas <misi.verhas@gmail.com>
Signed-off-by: Mihaly Verhas <misi.verhas@gmail.com>
Signed-off-by: Mihaly Verhas <misi.verhas@gmail.com>
Signed-off-by: Mihaly Verhas <misi.verhas@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating, but I think there are still some things we can improve in the docs. Also I think you have a wrong regex (or you check for something I don't understand)
src/main/java/org/junitpioneer/jupiter/ReportEntryExtension.java
Outdated
Show resolved
Hide resolved
src/main/java/org/junitpioneer/jupiter/ReportEntryExtension.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Mihaly Verhas <misi.verhas@gmail.com>
Signed-off-by: Mihaly Verhas <misi.verhas@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating / answer my stupid questions. LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work! 👍 Just a few small changes and we can merge.
docs/report-entries.adoc
Outdated
|
||
You can access `@ParameterizedTest` parameter values and publish them with the `@ReportEntry` annotation. | ||
Add a number (starting from zero) between curly braces to reference the parameter with that index. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you mention and link to the format you're using here? (Is it String::format
or MessageFormat
?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I see - this is still open right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did I misunderstand? I did mention that the format of the variables is in line with JUnit's @ParameterizedTest
naming
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The way I understood Nicolais question is that he wanted to see you mention String::format
or MessageFormat
, but maybe I missunderstood him.
src/main/java/org/junitpioneer/jupiter/ReportEntryExtension.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Mihaly Verhas <misi.verhas@gmail.com>
# Conflicts: # README.md # docs/report-entries.adoc
Kudos, SonarCloud Quality Gate passed! 0 Bugs |
Kudos, SonarCloud Quality Gate passed! 0 Bugs |
Refer to test method arguments with numbers between curly braces, starting with {0}.
Signed-off-by: Mihaly Verhas misi.verhas@gmail.com
I hereby agree to the terms of the JUnit Pioneer Contributor License Agreement.