gradle-plugin: Move tests into default 'test' directory
This commit is contained in:
@@ -45,53 +45,30 @@ allprojects {
|
|||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
jcenter()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
evaluationDependsOn(':tools:helpers')
|
evaluationDependsOn(':tools:helpers')
|
||||||
|
|
||||||
sourceSets {
|
|
||||||
integrationTest {
|
|
||||||
groovy.srcDir file('src/integrationTest/groovy')
|
|
||||||
|
|
||||||
compileClasspath += sourceSets.main.output
|
|
||||||
compileClasspath += configurations.integrationTestCompile
|
|
||||||
compileClasspath += configurations.testCompile
|
|
||||||
runtimeClasspath += output + compileClasspath
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
gradlePlugin {
|
|
||||||
testSourceSets sourceSets.integrationTest
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':shared')
|
compile project(':shared')
|
||||||
compile project(':tools:helpers')
|
compile project(':tools:helpers')
|
||||||
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
||||||
compile gradleApi()
|
compile gradleApi()
|
||||||
|
|
||||||
integrationTestCompile gradleTestKit()
|
testCompile gradleTestKit()
|
||||||
integrationTestCompile 'junit:junit:4.12'
|
testCompile 'junit:junit:4.12'
|
||||||
integrationTestCompile('org.spockframework:spock-core:1.1-groovy-2.4') {
|
testCompile('org.spockframework:spock-core:1.1-groovy-2.4') {
|
||||||
exclude module: 'groovy-all'
|
exclude module: 'groovy-all'
|
||||||
}
|
}
|
||||||
|
|
||||||
// integrationTestCompile 'com.netflix.nebula:nebula-test:6.0.1'
|
|
||||||
// testCompile 'com.netflix.nebula:nebula-test:6.0.1'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
task integrationTest(type: Test) {
|
test {
|
||||||
dependsOn(test)
|
dependsOn ':dist'
|
||||||
testLogging.showStandardStreams = true
|
//testLogging.showStandardStreams = true
|
||||||
testClassesDir = sourceSets.integrationTest.output.classesDir
|
|
||||||
classpath = sourceSets.integrationTest.runtimeClasspath
|
|
||||||
systemProperty("konan.home", rootProject.file('dist'))
|
systemProperty("konan.home", rootProject.file('dist'))
|
||||||
systemProperty("konan.root", rootProject.projectDir)
|
systemProperty("konan.root", rootProject.projectDir)
|
||||||
}
|
}
|
||||||
|
|
||||||
check.dependsOn integrationTest
|
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
dependsOn(':tools:helpers:jar')
|
dependsOn(':tools:helpers:jar')
|
||||||
from (rootProject.findProject(':tools:helpers').sourceSets.main.output)
|
from (rootProject.findProject(':tools:helpers').sourceSets.main.output)
|
||||||
|
|||||||
Reference in New Issue
Block a user