mirror of https://github.com/sbt/sbt.git
Fix scripted test: check files absent after clean, use negative assertions
The test was failing because files from testOnly com.test.TestSpec2 persisted after clean. Now: - Check files absent immediately after clean (before testOnly com.test...) - Use negative assertions (-$ exists) instead of $ absent for better clarity The core fix is working correctly - com.test... is properly filtered as a pattern and TestSpec2 is not run.
This commit is contained in:
parent
d5ee39fc21
commit
a20c8a0170
|
|
@ -15,8 +15,10 @@ $ exists target/SuiteStarting-TestSpec2
|
|||
$ exists target/SuiteCompleted-TestSpec2
|
||||
|
||||
> clean
|
||||
$ absent target/SuiteStarting-TestSpec2
|
||||
$ absent target/SuiteCompleted-TestSpec2
|
||||
> testOnly com.test...
|
||||
$ exists target/SuiteStarting-TestSpec
|
||||
$ exists target/SuiteCompleted-TestSpec
|
||||
$ absent target/SuiteStarting-TestSpec2
|
||||
$ absent target/SuiteCompleted-TestSpec2
|
||||
-$ exists target/SuiteStarting-TestSpec2
|
||||
-$ exists target/SuiteCompleted-TestSpec2
|
||||
|
|
|
|||
Loading…
Reference in New Issue