Skip to content

Commit 3d80cf4

Browse files
committed
add the example for issue #26
1 parent 36f5c45 commit 3d80cf4

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
package co.helmethair.scalatest.example
2+
3+
import org.scalatest.Suite
4+
import org.scalatest.funspec.AnyFunSpec
5+
6+
class NestedTestGroup extends AnyFunSpec {
7+
8+
import NestedTestGroup.*
9+
10+
override def nestedSuites: IndexedSeq[Suite] = IndexedSeq(
11+
N1,
12+
N2
13+
)
14+
15+
it("c") {}
16+
}
17+
18+
object NestedTestGroup {
19+
20+
class NestedSubTest extends AnyFunSpec {
21+
22+
it("a") {}
23+
it("b") {}
24+
}
25+
26+
object N1 extends NestedSubTest
27+
object N2 extends NestedSubTest
28+
29+
}

0 commit comments

Comments
 (0)