-
-
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
Add FilePosition in FileSelector and ClasspathResourceSelector #2253
Conversation
junit-platform-engine/src/main/java/org/junit/platform/engine/discovery/FilePosition.java
Outdated
Show resolved
Hide resolved
platform-tests/src/test/java/org/junit/platform/engine/discovery/FilePositionTests.java
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## master #2253 +/- ##
============================================
- Coverage 90.41% 90.36% -0.05%
- Complexity 4479 4512 +33
============================================
Files 391 392 +1
Lines 10887 10943 +56
Branches 875 891 +16
============================================
+ Hits 9843 9889 +46
- Misses 780 785 +5
- Partials 264 269 +5
Continue to review full report at Codecov.
|
junit-platform-engine/src/main/java/org/junit/platform/engine/discovery/FilePosition.java
Outdated
Show resolved
Hide resolved
...platform-engine/src/main/java/org/junit/platform/engine/support/descriptor/FilePosition.java
Outdated
Show resolved
Hide resolved
...platform-engine/src/main/java/org/junit/platform/engine/support/descriptor/FilePosition.java
Outdated
Show resolved
Hide resolved
...platform-engine/src/main/java/org/junit/platform/engine/support/descriptor/FilePosition.java
Outdated
Show resolved
Hide resolved
...form-engine/src/main/java/org/junit/platform/engine/discovery/ClasspathResourceSelector.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.
Looks good except for a few details! Most importantly, we should decide what the factory methods in DiscoverySelectors
should look like.
junit-platform-engine/src/main/java/org/junit/platform/engine/discovery/DiscoverySelectors.java
Outdated
Show resolved
Hide resolved
...platform-engine/src/main/java/org/junit/platform/engine/support/descriptor/FilePosition.java
Outdated
Show resolved
Hide resolved
junit-platform-engine/src/main/java/org/junit/platform/engine/discovery/FilePosition.java
Outdated
Show resolved
Hide resolved
platform-tests/src/test/java/org/junit/platform/engine/discovery/FilePositionTests.java
Outdated
Show resolved
Hide resolved
...platform-engine/src/main/java/org/junit/platform/engine/support/descriptor/FilePosition.java
Outdated
Show resolved
Hide resolved
Ok I've hopefully addressed all of your suggestions as intended; I hope it's ok I marked them as "resolved"; If I shouldn't have done that please let me know!
Since resolved in decb669 |
...gine/src/main/java/org/junit/platform/engine/support/descriptor/ClasspathResourceSource.java
Outdated
Show resolved
Hide resolved
Just noticed 1978513 in master; with this PR added to the 5.7 M2 milestone, should I merge in master and add a rough outline for the changes contained in this PR? I know this isn't a high priority new feature or fix, but would nonetheless be nice to see this finished if possible, before any other branches introduce conflicts. :) |
@timtebeek Sorry for the delay. We discussed it briefly in the last team call. The current solution still contains breaking changes so we were a bit torn whether to just duplicate the |
@marcphilipp No problem at all; I've reverted the deprecation changes, created a clean copy of FilePosition and updated the release notes. Could you have another look? :) |
@marcphilipp any update on this issue? Just trying to keep this flowing through; if there's any changes I have to make still let me know! |
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.
Hey @timtebeek, left you a few comments/suggestions on the PR! :)
platform-tests/src/test/java/org/junit/platform/engine/discovery/FilePositionTests.java
Outdated
Show resolved
Hide resolved
junit-platform-engine/src/main/java/org/junit/platform/engine/discovery/DiscoverySelectors.java
Show resolved
Hide resolved
documentation/src/docs/asciidoc/release-notes/release-notes-5.7.0-M2.adoc
Outdated
Show resolved
Hide resolved
junit-platform-engine/src/main/java/org/junit/platform/engine/discovery/DiscoverySelectors.java
Outdated
Show resolved
Hide resolved
...form-engine/src/main/java/org/junit/platform/engine/discovery/ClasspathResourceSelector.java
Outdated
Show resolved
Hide resolved
junit-platform-engine/src/main/java/org/junit/platform/engine/discovery/FileSelector.java
Outdated
Show resolved
Hide resolved
platform-tests/src/test/java/org/junit/platform/engine/discovery/DiscoverySelectorsTests.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Juliette de Rancourt <derancourt.juliette@gmail.com>
@juliette-derancourt Thanks a lot for the detailed feedback; I've applied all your suggestions. Let me know if there's anything else! :) |
platform-tests/src/test/java/org/junit/platform/engine/discovery/DiscoverySelectorsTests.java
Outdated
Show resolved
Hide resolved
…ry/DiscoverySelectorsTests.java
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.
Thank you for making the changes @timtebeek, looks good to me! 👍
* @since 1.7 | ||
*/ | ||
@API(status = STABLE, since = "1.7") | ||
public class FilePosition implements Serializable { |
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.
@junit-team/junit-lambda Should we mention in the Javadoc that this class is actually a copy of descriptor.FilePosition
?
Thanks for the PR @timtebeek! |
Overview
Fixes #2146.
I hereby agree to the terms of the JUnit Contributor License Agreement.
Definition of Done
@API
annotations