Build: Run only jsTests before mocha tests

Only js tests produce mocha tests to run
This commit is contained in:
Vyacheslav Gerasimov
2022-12-21 20:18:05 +01:00
parent e19776bd5a
commit 7348e34fd0
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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") {
+2 -2
View File
@@ -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)
} }