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

Added variables to ReportEntry #294

Merged
merged 14 commits into from
Sep 26, 2020
Merged

Added variables to ReportEntry #294

merged 14 commits into from
Sep 26, 2020

Conversation

Michael1993
Copy link
Member

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.

Refer to test method arguments with numbers between curly braces, starting with {0}.

Signed-off-by: Mihaly Verhas <misi.verhas@gmail.com>
@Michael1993
Copy link
Member Author

Progresses (possibly will close) #179

@nipafx
Copy link
Member

nipafx commented Jul 14, 2020

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
docs/report-entries.adoc Outdated Show resolved Hide resolved
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>
Copy link
Member

@Bukama Bukama left a 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)

docs/report-entries.adoc Outdated Show resolved Hide resolved
Signed-off-by: Mihaly Verhas <misi.verhas@gmail.com>
Signed-off-by: Mihaly Verhas <misi.verhas@gmail.com>
Copy link
Member

@Bukama Bukama left a 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

Copy link
Member

@nipafx nipafx left a 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.


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.
Copy link
Member

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?)

Copy link
Member

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?

Copy link
Member Author

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

Copy link
Member

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.

docs/report-entries.adoc Outdated Show resolved Hide resolved
docs/report-entries.adoc Outdated Show resolved Hide resolved
Signed-off-by: Mihaly Verhas <misi.verhas@gmail.com>
# Conflicts:
#	README.md
#	docs/report-entries.adoc
Signed-off-by: Mihaly Verhas <misi.verhas@gmail.com>
@sonarcloud
Copy link

sonarcloud bot commented Aug 5, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 2 Security Hotspots to review)
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@sonarcloud
Copy link

sonarcloud bot commented Sep 26, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 2 Security Hotspots to review)
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@nipafx nipafx merged commit be539f8 into junit-pioneer:master Sep 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants