[kotlin-test] Move kotlin-test integration tests project
This commit is contained in:
committed by
Space Team
parent
0d06efb488
commit
000db0bb44
+1
-1
@@ -719,7 +719,7 @@ tasks {
|
|||||||
register("coreLibsTest") {
|
register("coreLibsTest") {
|
||||||
(coreLibProjects + listOfNotNull(
|
(coreLibProjects + listOfNotNull(
|
||||||
":kotlin-stdlib:samples",
|
":kotlin-stdlib:samples",
|
||||||
":kotlin-test:kotlin-test-js-ir:kotlin-test-js-ir-it".takeIf { !kotlinBuildProperties.isInJpsBuildIdeaSync },
|
":kotlin-test:kotlin-test-js-it".takeIf { !kotlinBuildProperties.isInJpsBuildIdeaSync },
|
||||||
":kotlinx-metadata-jvm",
|
":kotlinx-metadata-jvm",
|
||||||
":tools:binary-compatibility-validator",
|
":tools:binary-compatibility-validator",
|
||||||
":tools:jdk-api-validator",
|
":tools:jdk-api-validator",
|
||||||
|
|||||||
@@ -1,20 +0,0 @@
|
|||||||
{
|
|
||||||
"scripts": {
|
|
||||||
"test-jasmine": "jasmine build/jsSources/jasmine-reporter.js build/compileSync/js/test/testDevelopmentExecutable/kotlin/kotlin-kotlin-test-js-ir-it-test.js",
|
|
||||||
"test-jest": "jest",
|
|
||||||
"test-mocha": "mocha --reporter build/jsSources/mocha-reporter.js build/compileSync/js/test/testDevelopmentExecutable/kotlin/kotlin-kotlin-test-js-ir-it-test.js",
|
|
||||||
"test-qunit": "qunit --require ./build/jsSources/qunit-reporter.js build/compileSync/js/test/testDevelopmentExecutable/kotlin/kotlin-kotlin-test-js-ir-it-test.js",
|
|
||||||
"test-tape": "tape build/jsSources/tape-reporter.js build/jsSources/tape-plugin.js build/compileSync/js/test/testDevelopmentExecutable/kotlin/kotlin-kotlin-test-js-ir-it-test.js"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"jasmine": "^3.10.0",
|
|
||||||
"jest": "^29.5.0",
|
|
||||||
"mocha": "^9.2.1",
|
|
||||||
"qunit": "^2.18.2",
|
|
||||||
"tape": "~4.10.0"
|
|
||||||
},
|
|
||||||
"jest": {
|
|
||||||
"testResultsProcessor": "<rootDir>/build/jsSources/jest-reporter.js",
|
|
||||||
"testRegex": "-test\\.js$"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
+7
-18
@@ -8,6 +8,7 @@ import java.io.FileOutputStream
|
|||||||
plugins {
|
plugins {
|
||||||
kotlin("js")
|
kotlin("js")
|
||||||
alias(libs.plugins.gradle.node)
|
alias(libs.plugins.gradle.node)
|
||||||
|
idea
|
||||||
}
|
}
|
||||||
|
|
||||||
description = "Kotlin-test integration tests for JS IR"
|
description = "Kotlin-test integration tests for JS IR"
|
||||||
@@ -17,14 +18,8 @@ node {
|
|||||||
download.set(true)
|
download.set(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
val jsMainSources by task<Sync> {
|
idea {
|
||||||
from("$rootDir/libraries/kotlin.test/js/it/src")
|
module.excludeDirs.add(file("node_modules"))
|
||||||
into(layout.buildDirectory.dir("jsMainSources"))
|
|
||||||
}
|
|
||||||
|
|
||||||
val jsSources by task<Sync> {
|
|
||||||
from("$rootDir/libraries/kotlin.test/js/it/js")
|
|
||||||
into(layout.buildDirectory.dir("jsSources"))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
val ignoreTestFailures by extra(project.kotlinBuildProperties.ignoreTestFailures)
|
val ignoreTestFailures by extra(project.kotlinBuildProperties.ignoreTestFailures)
|
||||||
@@ -32,16 +27,14 @@ val ignoreTestFailures by extra(project.kotlinBuildProperties.ignoreTestFailures
|
|||||||
kotlin {
|
kotlin {
|
||||||
js(IR) {
|
js(IR) {
|
||||||
nodejs {
|
nodejs {
|
||||||
testTask(Action {
|
testTask {
|
||||||
enabled = false
|
enabled = false
|
||||||
})
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
named("test") {
|
|
||||||
kotlin.srcDir(jsMainSources.get().destinationDir)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -56,7 +49,7 @@ val nodeModules by configurations.registering {
|
|||||||
}
|
}
|
||||||
|
|
||||||
val compileTestDevelopmentExecutableKotlinJs = tasks.named<KotlinJsIrLink>("compileTestDevelopmentExecutableKotlinJs") {
|
val compileTestDevelopmentExecutableKotlinJs = tasks.named<KotlinJsIrLink>("compileTestDevelopmentExecutableKotlinJs") {
|
||||||
compilerOptions.moduleName = "kotlin-kotlin-test-js-ir-it-test"
|
compilerOptions.moduleName = "kotlin-kotlin-test-js-it-test"
|
||||||
}
|
}
|
||||||
|
|
||||||
val populateNodeModules = tasks.register<Copy>("populateNodeModules") {
|
val populateNodeModules = tasks.register<Copy>("populateNodeModules") {
|
||||||
@@ -128,7 +121,3 @@ dependencies {
|
|||||||
api(project(":kotlin-test"))
|
api(project(":kotlin-test"))
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.named("compileTestKotlinJs") {
|
|
||||||
dependsOn(jsMainSources)
|
|
||||||
dependsOn(jsSources)
|
|
||||||
}
|
|
||||||
Generated
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"scripts": {
|
||||||
|
"test-jasmine": "jasmine js/jasmine-reporter.js build/compileSync/js/test/testDevelopmentExecutable/kotlin/kotlin-kotlin-test-js-it-test.js",
|
||||||
|
"test-jest": "jest",
|
||||||
|
"test-mocha": "mocha --reporter js/mocha-reporter.js build/compileSync/js/test/testDevelopmentExecutable/kotlin/kotlin-kotlin-test-js-it-test.js",
|
||||||
|
"test-qunit": "qunit --require ./js/qunit-reporter.js build/compileSync/js/test/testDevelopmentExecutable/kotlin/kotlin-kotlin-test-js-it-test.js",
|
||||||
|
"test-tape": "tape js/tape-reporter.js js/tape-plugin.js build/compileSync/js/test/testDevelopmentExecutable/kotlin/kotlin-kotlin-test-js-it-test.js"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"jasmine": "^3.10.0",
|
||||||
|
"jest": "^29.5.0",
|
||||||
|
"mocha": "^9.2.1",
|
||||||
|
"qunit": "^2.18.2",
|
||||||
|
"tape": "~4.10.0"
|
||||||
|
},
|
||||||
|
"jest": {
|
||||||
|
"testResultsProcessor": "<rootDir>/js/jest-reporter.js",
|
||||||
|
"testRegex": "-test\\.js$"
|
||||||
|
}
|
||||||
|
}
|
||||||
+2
-2
@@ -634,7 +634,7 @@ if (buildProperties.inJpsBuildIdeaSync) {
|
|||||||
":tools:kotlin-stdlib-gen",
|
":tools:kotlin-stdlib-gen",
|
||||||
|
|
||||||
":kotlin-test",
|
":kotlin-test",
|
||||||
":kotlin-test:kotlin-test-js-ir:kotlin-test-js-ir-it",
|
":kotlin-test:kotlin-test-js-it",
|
||||||
":native:native.tests"
|
":native:native.tests"
|
||||||
|
|
||||||
project(':kotlin-stdlib-common').projectDir = "$rootDir/libraries/stdlib/common" as File
|
project(':kotlin-stdlib-common').projectDir = "$rootDir/libraries/stdlib/common" as File
|
||||||
@@ -652,7 +652,7 @@ if (buildProperties.inJpsBuildIdeaSync) {
|
|||||||
project(':tools:ide-plugin-dependencies-validator').projectDir = "$rootDir/libraries/tools/ide-plugin-dependencies-validator" as File
|
project(':tools:ide-plugin-dependencies-validator').projectDir = "$rootDir/libraries/tools/ide-plugin-dependencies-validator" as File
|
||||||
|
|
||||||
project(':kotlin-test').projectDir = "$rootDir/libraries/kotlin.test" as File
|
project(':kotlin-test').projectDir = "$rootDir/libraries/kotlin.test" as File
|
||||||
project(':kotlin-test:kotlin-test-js-ir:kotlin-test-js-ir-it').projectDir = "$rootDir/libraries/kotlin.test/js-ir/it" as File
|
project(':kotlin-test:kotlin-test-js-it').projectDir = "$rootDir/libraries/kotlin.test/js/it" as File
|
||||||
project(':native:native.tests').projectDir = "$rootDir/native/native.tests" as File
|
project(':native:native.tests').projectDir = "$rootDir/native/native.tests" as File
|
||||||
}
|
}
|
||||||
include ":compiler:android-tests"
|
include ":compiler:android-tests"
|
||||||
|
|||||||
Reference in New Issue
Block a user