diff --git a/Detailed-Topics/Testing.md b/Detailed-Topics/Testing.md index 4741e82..b361b06 100644 --- a/Detailed-Topics/Testing.md +++ b/Detailed-Topics/Testing.md @@ -141,18 +141,10 @@ parallelExecution in Test := false If you want to only run test classes whose name ends with "Test", use `Tests.Filter`: -```scala +``` testOptions in Test := Seq(Tests.Filter(s => s.endsWith("Test"))) ``` -or if you want remove other tests from `detected-tests` for some reason: -```scala -definedTests in Test <<= (definedTests in Test) { - (tests) => - def filter(tests: Seq[TestDefinition]) = tests.filter(t => t.name.endsWith("Test")) - tests map filter -} -``` ## Forking tests In version 0.12 the facility to run tests in a separate JVM has been added. The setting