@@ -14,11 +14,6 @@ repositories {
1414}
1515
1616sourceSets {
17- npmTest {
18- kotlin
19- compileClasspath + = sourceSets. test. runtimeClasspath
20- runtimeClasspath + = sourceSets. test. runtimeClasspath
21- }
2217 mavenTest {
2318 kotlin
2419 compileClasspath + = sourceSets. test. runtimeClasspath
@@ -43,20 +38,6 @@ compileDebugAgentTestKotlin {
4338 }
4439}
4540
46- task npmTest (type : Test ) {
47- def sourceSet = sourceSets. npmTest
48- environment " projectRoot" , project. rootDir
49- environment " deployVersion" , version
50- def dryRunNpm = project. properties[' dryRun' ]
51- def doRun = dryRunNpm == " true" // so that we don't accidentally publish anything, especially before the test
52- onlyIf { doRun }
53- if (doRun) { // `onlyIf` only affects execution of the task, not the dependency subtree
54- dependsOn(project(' :' ). getTasksByName(" publishNpm" , true ))
55- }
56- testClassesDirs = sourceSet. output. classesDirs
57- classpath = sourceSet. runtimeClasspath
58- }
59-
6041task mavenTest (type : Test ) {
6142 environment " version" , version
6243 def sourceSet = sourceSets. mavenTest
@@ -96,8 +77,6 @@ task coreAgentTest(type: Test) {
9677dependencies {
9778 testImplementation " org.jetbrains.kotlin:kotlin-stdlib-jdk8"
9879 testImplementation ' junit:junit:4.12'
99- npmTestImplementation ' org.apache.commons:commons-compress:1.18'
100- npmTestImplementation ' com.google.code.gson:gson:2.8.5'
10180 debugAgentTestImplementation project(' :kotlinx-coroutines-core' )
10281 debugAgentTestImplementation project(' :kotlinx-coroutines-debug' )
10382 coreAgentTestImplementation project(' :kotlinx-coroutines-core' )
@@ -108,5 +87,5 @@ compileTestKotlin {
10887}
10988
11089check {
111- dependsOn([npmTest, mavenTest, debugAgentTest, coreAgentTest])
90+ dependsOn([mavenTest, debugAgentTest, coreAgentTest])
11291}
0 commit comments