Skip to content

Commit 78361a8

Browse files
authored
unignore bulk test (except JVM) (#120)
1 parent c74cdf1 commit 78361a8

File tree

8 files changed

+35
-6
lines changed

8 files changed

+35
-6
lines changed

build.gradle.kts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,22 @@ jgitver {
3232
kotlin {
3333
jvmToolchain(21)
3434
explicitApiWarning()
35-
compilerOptions { allWarningsAsErrors = true }
35+
compilerOptions {
36+
allWarningsAsErrors = true
37+
freeCompilerArgs.addAll("-Xexpect-actual-classes", "-Xconsistent-data-class-copy-visibility")
38+
}
3639

3740
jvm()
3841

3942
js(IR) {
40-
browser()
41-
nodejs()
43+
browser { testTask { useMocha { timeout = "10min" } } }
44+
nodejs { testTask { useMocha { timeout = "10min" } } }
4245
}
4346

4447
wasmJs {
4548
browser()
4649
nodejs()
47-
d8 {}
50+
d8()
4851
}
4952

5053
// native tier 1

karma.config.d/config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// noinspection JSUnresolvedReference
2+
// https://youtrack.jetbrains.com/issue/KT-73191/
3+
config.set({
4+
client: {
5+
mocha: {
6+
timeout: "10min"
7+
}
8+
}
9+
});

src/commonTest/kotlin/co/pokeapi/pokekotlin/test/BulkTest.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@ package co.pokeapi.pokekotlin.test
22

33
import co.pokeapi.pokekotlin.model.ResourceSummary
44
import co.pokeapi.pokekotlin.model.ResourceSummaryList
5-
import kotlin.test.Ignore
65
import kotlin.test.Test
76
import kotlin.test.fail
87
import kotlinx.coroutines.test.runTest
98

10-
@Ignore
9+
@IgnoreOnJvm // Should work on JVM but it's OOMing.
1110
class BulkTest {
1211

1312
private suspend fun testCase(cat: String, id: Int, getObject: suspend (Int) -> Any) {
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package co.pokeapi.pokekotlin.test
2+
3+
/** Stub annotation to act as a typealias destination for non-applied Ignores. */
4+
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION) annotation class NoOpIgnore()
5+
6+
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION) expect annotation class IgnoreOnJvm()
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package co.pokeapi.pokekotlin.test
2+
3+
actual typealias IgnoreOnJvm = NoOpIgnore
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package co.pokeapi.pokekotlin.test
2+
3+
actual typealias IgnoreOnJvm = org.junit.Ignore
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package co.pokeapi.pokekotlin.test
2+
3+
actual typealias IgnoreOnJvm = NoOpIgnore
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package co.pokeapi.pokekotlin.test
2+
3+
actual typealias IgnoreOnJvm = NoOpIgnore

0 commit comments

Comments
 (0)