Add scripted test: testOnly with pattern filter (com.test...)

Address review: cover scenario where testOnly is run with a pattern
rather than an explicit FQN; @DoNotDiscover remains excluded.
This commit is contained in:
Eruis2579 2026-02-12 00:32:38 -05:00
parent 83b7a9e699
commit 60c764b4b0
1 changed files with 4 additions and 0 deletions

View File

@ -1,6 +1,7 @@
# #5609: When explicitly requested via testOnly, @DoNotDiscover suite should run.
# First: full test run must exclude @DoNotDiscover (TestSpec2).
# Second: testOnly with explicit FQN must run TestSpec2.
# Third: testOnly with a pattern filter (com.test...) — no explicit FQN, so @DoNotDiscover stays excluded.
> clean
> testFull
@ -13,3 +14,6 @@ $ absent target/SuiteCompleted-TestSpec2
> testOnly com.test.TestSpec2
$ exists target/SuiteStarting-TestSpec2
$ exists target/SuiteCompleted-TestSpec2
> clean
> testOnly com.test...