-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Introduce Display Name Generator SPI #1588
Conversation
f5687c6
to
43fe669
Compare
...-jupiter-engine/src/main/java/org/junit/jupiter/engine/descriptor/JupiterTestDescriptor.java
Outdated
Show resolved
Hide resolved
...er-engine/src/main/java/org/junit/jupiter/engine/descriptor/DefaultDisplayNameGenerator.java
Outdated
Show resolved
Hide resolved
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.
I requested that unrelated changes be pushed to master
.
...upiter-engine/src/test/java/org/junit/jupiter/api/extension/ExtensionComposabilityTests.java
Outdated
Show resolved
Hide resolved
...upiter-engine/src/test/java/org/junit/jupiter/api/extension/ExtensionComposabilityTests.java
Outdated
Show resolved
Hide resolved
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.
I've submitted a separate review for the meat of this PR.
junit-jupiter-api/src/main/java/org/junit/jupiter/api/extension/DisplayNameGenerator.java
Outdated
Show resolved
Hide resolved
junit-jupiter-api/src/main/java/org/junit/jupiter/api/extension/DisplayNameGenerator.java
Outdated
Show resolved
Hide resolved
junit-jupiter-api/src/main/java/org/junit/jupiter/api/extension/DisplayNameGenerator.java
Outdated
Show resolved
Hide resolved
...er-engine/src/main/java/org/junit/jupiter/engine/descriptor/DefaultDisplayNameGenerator.java
Outdated
Show resolved
Hide resolved
...-jupiter-engine/src/main/java/org/junit/jupiter/engine/descriptor/JupiterTestDescriptor.java
Outdated
Show resolved
Hide resolved
7542436
to
91231ac
Compare
Codecov Report
@@ Coverage Diff @@
## master #1588 +/- ##
============================================
+ Coverage 92.03% 92.09% +0.05%
- Complexity 3548 3561 +13
============================================
Files 323 325 +2
Lines 8474 8510 +36
Branches 737 742 +5
============================================
+ Hits 7799 7837 +38
Misses 502 502
+ Partials 173 171 -2
Continue to review full report at Codecov.
|
91231ac
to
aa0d3bb
Compare
@sormuras, what was the resolution of the jacoco vs. synthetic discussion? |
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.
I've requested minor changes and posed a few questions as well.
documentation/src/test/java/example/DisplayNameGeneratorDemo.java
Outdated
Show resolved
Hide resolved
junit-jupiter-api/src/main/java/org/junit/jupiter/api/DisplayNameGeneration.java
Outdated
Show resolved
Hide resolved
junit-jupiter-api/src/main/java/org/junit/jupiter/api/DisplayNameGeneration.java
Outdated
Show resolved
Hide resolved
junit-jupiter-api/src/main/java/org/junit/jupiter/api/DisplayNameGeneration.java
Outdated
Show resolved
Hide resolved
junit-jupiter-api/src/main/java/org/junit/jupiter/api/DisplayNameGeneration.java
Outdated
Show resolved
Hide resolved
junit-jupiter-api/src/main/java/org/junit/jupiter/api/DisplayNameGeneration.java
Outdated
Show resolved
Hide resolved
junit-jupiter-api/src/main/java/org/junit/jupiter/api/DisplayNameGenerator.java
Show resolved
Hide resolved
...iter-engine/src/main/java/org/junit/jupiter/engine/descriptor/MethodBasedTestDescriptor.java
Show resolved
Hide resolved
...upiter-engine/src/test/java/org/junit/jupiter/api/extension/ExtensionComposabilityTests.java
Outdated
Show resolved
Hide resolved
...upiter-engine/src/test/java/org/junit/jupiter/api/extension/ExtensionComposabilityTests.java
Outdated
Show resolved
Hide resolved
Mh, my comment is buried somewhere or was lost before being posted. Anyway, the underlying issue were the As I removed the |
Aha. Interesting! But that makes sense now. Thanks for the explanation. |
In any case, those JaCoCo methods will return due to the |
Create an issue in advance? Have a solution shelved here... |
Sure, feel free. But please let @geo-m know so that he's informed. 😉 |
aa0d3bb
to
7aa3d61
Compare
Open Issues: (not covered in a review)
|
7aa3d61
to
1572ccc
Compare
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.
I added another mini review.
junit-jupiter-api/src/main/java/org/junit/jupiter/api/DisplayNameGeneration.java
Outdated
Show resolved
Hide resolved
junit-jupiter-api/src/main/java/org/junit/jupiter/api/DisplayNameGeneration.java
Outdated
Show resolved
Hide resolved
junit-jupiter-api/src/main/java/org/junit/jupiter/api/DisplayNameGeneration.java
Outdated
Show resolved
Hide resolved
junit-jupiter-api/src/main/java/org/junit/jupiter/api/DisplayNameGeneration.java
Outdated
Show resolved
Hide resolved
8f18466
to
2799c3e
Compare
All comments addressed, starting with the documentation. |
Removed the WIP prefix from the issue title. @sbrannen shall I merge to |
junit-jupiter-api/src/main/java/org/junit/jupiter/api/DisplayNameGeneration.java
Outdated
Show resolved
Hide resolved
559a666
to
6e7f2a3
Compare
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.
Minor change requested
junit-jupiter-api/src/main/java/org/junit/jupiter/api/DisplayNameGeneration.java
Outdated
Show resolved
Hide resolved
ac4a355
to
2dc2965
Compare
@marcphilipp anything else? If not, I'll continue with documentation. |
2dc2965
to
be2d0e6
Compare
A final review by @marcphilipp tonight or ... soon. ;-) |
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.
Looking good! 👍 One added some minor comments. Please add an entry to the release notes as well.
junit-jupiter-api/src/main/java/org/junit/jupiter/api/DisplayNameGenerator.java
Outdated
Show resolved
Hide resolved
junit-jupiter-api/src/main/java/org/junit/jupiter/api/DisplayNameGeneration.java
Outdated
Show resolved
Hide resolved
junit-jupiter-api/src/main/java/org/junit/jupiter/api/DisplayNameGenerator.java
Show resolved
Hide resolved
junit-jupiter-api/src/main/java/org/junit/jupiter/api/DisplayNameGenerator.java
Outdated
Show resolved
Hide resolved
junit-jupiter-engine/src/main/java/org/junit/jupiter/engine/descriptor/DisplayNameUtils.java
Outdated
Show resolved
Hide resolved
junit-jupiter-engine/src/main/java/org/junit/jupiter/engine/descriptor/DisplayNameUtils.java
Outdated
Show resolved
Hide resolved
junit-jupiter-engine/src/test/java/org/junit/jupiter/api/DisplayNameGenerationTests.java
Outdated
Show resolved
Hide resolved
be2d0e6
to
c75ae2c
Compare
Addresses #162
Move pre-defined generators to DisplayNameGenerator interface.
c75ae2c
to
3ad6cf2
Compare
3ad6cf2
to
ee139f7
Compare
Overview
Addresses #162
Definition of Done
@API
annotations