-
-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Here is a short example when being used with Gradle (latest version):
package com.tribbloids.spookystuff.spike
import org.scalatest.Suite
import org.scalatest.funspec.AnyFunSpec
class NestedTestsSpike extends AnyFunSpec {
import NestedTestsSpike.*
override def nestedSuites: IndexedSeq[Suite] = IndexedSeq(
N1,
N2
)
it("c") {}
}
object NestedTestsSpike {
class Nested extends AnyFunSpec {
it("a") {}
it("b") {}
}
object N1 extends Nested
object N2 extends Nested
}
upon test execution:
Task :module:sanity:test
com.tribbloids.spookystuff.spike.NestedTestsSpike$N1$ > a PASSED
com.tribbloids.spookystuff.spike.NestedTestsSpike$N1$ > b PASSED
com.tribbloids.spookystuff.spike.NestedTestsSpike$N2$ > a PASSED
com.tribbloids.spookystuff.spike.NestedTestsSpike$N2$ > b PASSED
com.tribbloids.spookystuff.spike.NestedTestsSpike$Nested > a PASSED
com.tribbloids.spookystuff.spike.NestedTestsSpike$Nested > b PASSED
com.tribbloids.spookystuff.spike.NestedTestsSpike > a PASSED
com.tribbloids.spookystuff.spike.NestedTestsSpike > b PASSED
com.tribbloids.spookystuff.spike.NestedTestsSpike > c PASSED
BUILD SUCCESSFUL in 2s
15 actionable tasks: 1 executed, 14 up-to-date
there are plenty of test cases with unknown origin (highlight in bold text)
where did they come from?