Skip to content

Commit 865dc70

Browse files
committed
Adding class to main in 'a-tests' breaks reports
1 parent ca7abc8 commit 865dc70

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package hello
2+
3+
class BaseTest {
4+
def beforeTest() = {
5+
println("Running test!")
6+
}
7+
}

src/test/separate-tests/a-tests/src/test/scala/hello/HelloTest.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ package hello
33
import org.junit.Test
44
import org.junit.Assert.assertEquals
55

6-
class HelloTest {
6+
class HelloTest extends BaseTest {
77

88
@Test def testText() {
9+
beforeTest()
910
assertEquals("Hello World", new Hello().text)
1011
}
1112

0 commit comments

Comments
 (0)