Build: Run only jsTests before mocha tests
Only js tests produce mocha tests to run
This commit is contained in:
+1
-1
@@ -604,7 +604,7 @@ tasks {
|
|||||||
|
|
||||||
register("jsCompilerTest") {
|
register("jsCompilerTest") {
|
||||||
dependsOn(":js:js.tests:jsTest")
|
dependsOn(":js:js.tests:jsTest")
|
||||||
dependsOn(":js:js.tests:mochaTest")
|
dependsOn(":js:js.tests:runMocha")
|
||||||
}
|
}
|
||||||
|
|
||||||
register("jsFirCompilerTest") {
|
register("jsFirCompilerTest") {
|
||||||
|
|||||||
@@ -388,7 +388,7 @@ val test = projectTest(parallel = true, jUnitMode = JUnitMode.JUnit5, maxHeapSiz
|
|||||||
configureTestDistribution()
|
configureTestDistribution()
|
||||||
}
|
}
|
||||||
|
|
||||||
projectTest("jsTest", parallel = true, jUnitMode = JUnitMode.JUnit5, maxHeapSizeMb = 4096) {
|
val jsTest = projectTest("jsTest", parallel = true, jUnitMode = JUnitMode.JUnit5, maxHeapSizeMb = 4096) {
|
||||||
setUpJsBoxTests(jsEnabled = true, jsIrEnabled = false, firEnabled = false)
|
setUpJsBoxTests(jsEnabled = true, jsIrEnabled = false, firEnabled = false)
|
||||||
useJUnitPlatform()
|
useJUnitPlatform()
|
||||||
}
|
}
|
||||||
@@ -451,7 +451,7 @@ val mochaTest by task<NpmTask> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
val runMocha by tasks.registering {
|
val runMocha by tasks.registering {
|
||||||
dependsOn(test)
|
dependsOn(jsTest)
|
||||||
finalizedBy(mochaTest)
|
finalizedBy(mochaTest)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user