-
-
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 IterationSelector #2743
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2743 +/- ##
============================================
- Coverage 91.11% 91.02% -0.09%
- Complexity 4439 4460 +21
============================================
Files 383 384 +1
Lines 10747 10799 +52
Branches 834 840 +6
============================================
+ Hits 9792 9830 +38
- Misses 739 746 +7
- Partials 216 223 +7
Continue to review full report at Codecov.
|
Related Spock PR: spockframework/spock#1379 |
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.
TODO: Also add support for ConsoleLauncher
.
...tform-engine/src/main/java/org/junit/platform/engine/support/discovery/SelectorResolver.java
Show resolved
Hide resolved
032e0e9
to
14a9ff9
Compare
I added support to select iterations via $ gw :documentation:consoleLauncher --args="--select-iteration=method:example.ParameterizedTestDemo#palindromes(java.lang.String)[0,2]"
Using gradle at '/Users/marc/Repositories/junit5/gradlew' to run buildfile '/Users/marc/Repositories/junit5/build.gradle.kts':
Type-safe dependency accessors is an incubating feature.
Type-safe project accessors is an incubating feature.
> Task :documentation:consoleLauncher
Thanks for using JUnit! Support its development at https://junit.org/sponsoring
╷
├─ JUnit Vintage ✔
├─ JUnit Platform Suite ✔
└─ JUnit Jupiter ✔
└─ ParameterizedTestDemo ✔
└─ palindromes(String) ✔
├─ [1] candidate=racecar ✔
└─ [3] candidate=able was I ere I saw elba ✔
Test run finished after 131 ms
[ 5 containers found ]
[ 0 containers skipped ]
[ 5 containers started ]
[ 0 containers aborted ]
[ 5 containers successful ]
[ 0 containers failed ]
[ 2 tests found ]
[ 0 tests skipped ]
[ 2 tests started ]
[ 0 tests aborted ]
[ 2 tests successful ]
[ 0 tests failed ]
BUILD SUCCESSFUL in 4s
95 actionable tasks: 33 executed, 62 up-to-date
Publishing build scan...
https://ge.junit.org/s/rhvdhs6tzwz7o |
81c9f69
to
51ca1d6
Compare
Co-authored-by: Leonard Brünings <[email protected]>
Co-authored-by: Leonard Brünings <[email protected]>
Co-authored-by: Leonard Brünings <[email protected]>
Co-authored-by: Leonard Brünings <[email protected]>
Co-authored-by: Leonard Brünings <[email protected]>
7d253bf
to
ca5b9ea
Compare
Had another brief look at this PR and I like it.
|
They'd have to check for
Yes, they would. The syntax is |
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.
Looks good to me.
Resolves #2738.