Skip to content

Commit

Permalink
Gradle task to run JUnit5 SampleTestCase
Browse files Browse the repository at this point in the history
  • Loading branch information
marcphilipp committed Oct 28, 2015
1 parent 31e9cb9 commit d52c835
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions sample-project/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
apply plugin: 'java'

dependencies {
testCompile(project(':sample-extension'))
testCompile(project(':junit-launcher'))
testCompile(project(':junit-console'))
testCompile(project(':junit5-api'))
testRuntime(project(':junit5-engine'))
}

task runSampleTestCase(type: JavaExec) {
classpath = sourceSets.test.runtimeClasspath
classpath += project(':junit-console')sourceSets.main.runtimeClasspath
main = 'org.junit.gen5.console.ConsoleRunner'
args 'com.example.SampleTestCase'
}

0 comments on commit d52c835

Please sign in to comment.