Skip to content

Commit

Permalink
split tests from inttests, won't run on travis (no credentials for th…
Browse files Browse the repository at this point in the history
…e bitly api)
  • Loading branch information
stackmagic committed Jun 23, 2015
1 parent ab012ef commit 664c954
Show file tree
Hide file tree
Showing 29 changed files with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@ version = '0.8.0'
sourceCompatibility = 1.6
targetCompatibility = 1.6

// extra configuration for integration tests
configurations {
intTestCompile
}

sourceSets {
intTest {
compileClasspath = sourceSets.main.output + configurations.testRuntime
runtimeClasspath = sourceSets.main.output + configurations.testRuntime + output
}
}

// normal repositories and dependencies
repositories {
jcenter()
Expand All @@ -34,6 +46,11 @@ dependencies {
testCompile 'org.slf4j:jcl-over-slf4j:1.7.12'
testCompile 'ch.qos.logback:logback-classic:1.1.3'
testCompile 'org.testng:testng:6.8.8'

// integration testing
intTestCompile 'org.slf4j:jcl-over-slf4j:1.7.12'
intTestCompile 'ch.qos.logback:logback-classic:1.1.3'
intTestCompile 'org.testng:testng:6.8.8'
}

// testing
Expand Down Expand Up @@ -94,3 +111,12 @@ bintray {
}
}
}

task('intTest', type: Test, dependsOn: 'intTestClasses') {
useTestNG()
testLogging.showStandardStreams = true
group = 'verification'
testSrcDirs = sourceSets.intTest.java.srcDirs as List
testClassesDir = sourceSets.intTest.output.classesDir
classpath = sourceSets.intTest.runtimeClasspath
}
File renamed without changes.

0 comments on commit 664c954

Please sign in to comment.