gradle-plugin: Move tests into default 'test' directory

This commit is contained in:
Ilya Matveev
2017-07-11 20:19:31 +07:00
committed by ilmat192
parent f87ae58f7c
commit e8c1fbe1ff
2 changed files with 6 additions and 29 deletions
+6 -29
View File
@@ -45,53 +45,30 @@ allprojects {
repositories {
mavenCentral()
jcenter()
}
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 {
compile project(':shared')
compile project(':tools:helpers')
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile gradleApi()
integrationTestCompile gradleTestKit()
integrationTestCompile 'junit:junit:4.12'
integrationTestCompile('org.spockframework:spock-core:1.1-groovy-2.4') {
testCompile gradleTestKit()
testCompile 'junit:junit:4.12'
testCompile('org.spockframework:spock-core:1.1-groovy-2.4') {
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) {
dependsOn(test)
testLogging.showStandardStreams = true
testClassesDir = sourceSets.integrationTest.output.classesDir
classpath = sourceSets.integrationTest.runtimeClasspath
test {
dependsOn ':dist'
//testLogging.showStandardStreams = true
systemProperty("konan.home", rootProject.file('dist'))
systemProperty("konan.root", rootProject.projectDir)
}
check.dependsOn integrationTest
jar {
dependsOn(':tools:helpers:jar')
from (rootProject.findProject(':tools:helpers').sourceSets.main.output)