JS: added back integration test for @BeforeTest and @AfterTest annotations
The test was removed in e5cfd198c7 in order
to prevent gradle tests from crashing when running with the old compiler.
This commit is contained in:
@@ -1,13 +1,23 @@
|
||||
import kotlin.test.*
|
||||
|
||||
var value = 5
|
||||
|
||||
class SimpleTest {
|
||||
|
||||
@BeforeTest fun beforeFun() {
|
||||
value *= 2
|
||||
}
|
||||
|
||||
@AfterTest fun afterFun() {
|
||||
value /= 2
|
||||
}
|
||||
|
||||
@Test fun testFoo() {
|
||||
assertNotEquals(10, foo())
|
||||
assertNotEquals(value, foo())
|
||||
}
|
||||
|
||||
@Test fun testBar() {
|
||||
assertEquals(10, foo())
|
||||
assertEquals(value, foo())
|
||||
}
|
||||
|
||||
@Ignore @Test fun testFooWrong() {
|
||||
|
||||
Reference in New Issue
Block a user