mirror of https://github.com/sbt/sbt.git
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:
parent
83b7a9e699
commit
60c764b4b0
|
|
@ -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...
|
||||
|
|
|
|||
Loading…
Reference in New Issue