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

Add support for passing line and column number to ConsoleLauncher via --select-file and --select-resource #4044

Merged

Conversation

juliette-derancourt
Copy link
Member

Overview

Resolves #3483


I hereby agree to the terms of the JUnit Contributor License Agreement.


Definition of Done

@@ -109,4 +120,12 @@ public DiscoverySelectorIdentifier convert(String value) {
}
}

private static URI stripQueryComponent(URI uri) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method is a duplicate of the one in org.junit.platform.engine.support.descriptor.ResourceUtils, but I don't think there is a way of using the same in both places, is it?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we made ResourceUtils and the method public, we could reuse it. I think it would be slightly better regarding consistenct to move it to the org.junit.platform.commons.util package, though.

Copy link
Member

@marcphilipp marcphilipp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good! 👍

@@ -109,4 +120,12 @@ public DiscoverySelectorIdentifier convert(String value) {
}
}

private static URI stripQueryComponent(URI uri) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we made ResourceUtils and the method public, we could reuse it. I think it would be slightly better regarding consistenct to move it to the org.junit.platform.commons.util package, though.

@juliette-derancourt juliette-derancourt force-pushed the issues/3483-console-launcher-select-line-column branch from f1bef61 to a16ac63 Compare October 17, 2024 16:36
@juliette-derancourt juliette-derancourt force-pushed the issues/3483-console-launcher-select-line-column branch from a16ac63 to 7d2ed6d Compare October 17, 2024 16:37
@juliette-derancourt juliette-derancourt merged commit f37db92 into main Oct 23, 2024
15 checks passed
@juliette-derancourt juliette-derancourt deleted the issues/3483-console-launcher-select-line-column branch October 23, 2024 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for passing line and column number to ConsoleLauncher via --select-file and --select-resource
2 participants