-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce parseable DiscoverySelector representations (#3737)
All Platform implementations of `DiscoverySelector` now have a parseable string representation that can be generated by calling the new `DiscoverySelector.toIdentifier()` method and `toString()` on the returned `DiscoverySelectorIdentifier`. This string representation can be used to reconstruct the original `DiscoverySelector` by calling the new `DiscoverySelectors.parse()` method. This change will allow build tools and IDEs to provide generic mechanisms for specifying selectors on the command line or in configuration files without having to support each selector type individually. The Console Launcher supports specifying selectors via their identifiers using the `--select` option. For example, `--select class:foo.Bar` will run all tests in the `foo.Bar` class. Similarly, the JUnit Platform Suite engine provides a new `@Select("<identifier>)` annotation. Co-authored-by: Marc Philipp <mail@marcphilipp.de>
- Loading branch information
1 parent
bc55d0e
commit 2a777a8
Showing
47 changed files
with
2,058 additions
and
288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.