Commit 2a777a8
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 <[email protected]>1 parent bc55d0e commit 2a777a8
File tree
47 files changed
+2058
-288
lines changed- documentation/src/docs/asciidoc
- release-notes
- user-guide
- junit-platform-commons/src/main/java/org/junit/platform/commons/util
- junit-platform-console/src/main/java/org/junit/platform/console/options
- junit-platform-engine/src
- main
- java/org/junit/platform/engine
- discovery
- resources/META-INF/services
- module/org.junit.platform.engine
- junit-platform-runner/src/main/java/org/junit/platform/runner
- junit-platform-suite-api/src/main/java/org/junit/platform/suite/api
- junit-platform-suite-commons/src/main/java/org/junit/platform/suite/commons
- platform-tests
- src/test/java/org/junit/platform
- commons/util
- console
- options
- tasks
- engine/discovery
- suite
- commons
- engine
- testsuites
- platform-tooling-support-tests/projects/jar-describe-module
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
47 files changed
+2058
-288
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
26 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
27 | 51 | | |
| 52 | + | |
| 53 | + | |
28 | 54 | | |
29 | 55 | | |
30 | 56 | | |
| |||
51 | 77 | | |
52 | 78 | | |
53 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
54 | 89 | | |
55 | 90 | | |
56 | 91 | | |
| |||
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
40 | 53 | | |
41 | 54 | | |
42 | 55 | | |
| |||
Lines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
704 | 704 | | |
705 | 705 | | |
706 | 706 | | |
| 707 | + | |
707 | 708 | | |
708 | 709 | | |
709 | 710 | | |
710 | 711 | | |
711 | 712 | | |
712 | 713 | | |
| 714 | + | |
713 | 715 | | |
714 | 716 | | |
715 | 717 | | |
716 | 718 | | |
717 | 719 | | |
718 | 720 | | |
| 721 | + | |
719 | 722 | | |
720 | 723 | | |
721 | 724 | | |
| |||
887 | 890 | | |
888 | 891 | | |
889 | 892 | | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
890 | 925 | | |
891 | 926 | | |
892 | 927 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2429 | 2429 | | |
2430 | 2430 | | |
2431 | 2431 | | |
2432 | | - | |
2433 | | - | |
| 2432 | + | |
| 2433 | + | |
2434 | 2434 | | |
2435 | 2435 | | |
2436 | 2436 | | |
| |||
Lines changed: 25 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
58 | | - | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
69 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
70 | 93 | | |
71 | 94 | | |
72 | 95 | | |
| |||
Lines changed: 23 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
929 | 929 | | |
930 | 930 | | |
931 | 931 | | |
932 | | - | |
933 | 932 | | |
934 | 933 | | |
935 | 934 | | |
936 | 935 | | |
937 | 936 | | |
938 | | - | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
939 | 960 | | |
940 | 961 | | |
941 | 962 | | |
| |||
0 commit comments