44
55A Gradle plugin that allows for the execution of [ JUnit 5] [ junit5gh ] unit tests in Android environments.
66
7- ## Setup
7+ ## Download
88
99``` groovy
1010buildscript {
11- repositories {
12- // 1. Make sure to include jcenter in your repositories
13- jcenter()
14- }
1511 dependencies {
16- // 2. Add the plugin as a classpath dependency
17- classpath "de.mannodermaus.gradle.plugins:android-junit5:1.0.0-M4-rev3"
12+ classpath "de.mannodermaus.gradle.plugins:android-junit5:1.0.0-M5"
1813 }
1914}
15+ ```
16+
17+ Snapshots of the development version are available through [ Sonatype's ` snapshots ` repository] [ sonatyperepo ] .
2018
21- // 3. Apply the plugin below your Android plugin
19+ ## Setup
20+
21+ ``` groovy
2222apply plugin: "com.android.application"
2323apply plugin: "de.mannodermaus.android-junit5"
2424
2525dependencies {
26- // 4. Add the testCompile dependencies on JUnit Jupiter
2726 testCompile junitJupiter()
2827
29- // 5. (Optional) If you need "parameterized tests"
28+ // (Optional) If you need "parameterized tests"
3029 testCompile junitParams()
3130}
3231```
@@ -46,13 +45,14 @@ However, there are some additional properties that you can apply:
4645
4746``` groovy
4847junitPlatform {
49- // The JUnit Jupiter dependency version to use; "5.0.0-M4" by default
50- jupiterVersion "5.0.0-M4 "
51- // The JUnit Vintage Engine dependency version to use; "4.12.0-M4" by default
52- vintageVersion "4.12.0-M4 "
48+ // The JUnit Jupiter dependency version to use; matches the platform's milestone by default
49+ jupiterVersion "5.0.0-M5 "
50+ // The JUnit Vintage Engine dependency version to use; matches the platform's milestone by default
51+ vintageVersion "4.12.0-M5 "
5352}
5453```
5554
5655 [ junit5gh ] : https://github.com/junit-team/junit5
5756 [ junit5ug ] : http://junit.org/junit5/docs/current/user-guide
5857 [ travisci ] : https://travis-ci.org/aurae/android-junit5
58+ [ sonatyperepo ] : https://oss.sonatype.org/content/repositories/snapshots
0 commit comments