You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Some advancements towards AGP 3.0.0
* Expanded Unit Test suite to run tests for 2.x & 3.x variants of the AGP
* Mark test source folders as such in IDEA
* Use default JUnit Platform version
* Performed some sweeping inside the plugin’s compile & runtime dependencies, and tasks
* JUnit 4 is included by default, which allows AS builds w/o “class not found”
* Deprecated junitVintage() dependency handler & issue a warning
* Both TestEngines are included on the runtime classpath by default
* Disable the default unit test task if JUnit 5 is used
* Some clean-up
* Moved around unit test cases for 2.x & 3.x
* Bump to 1.0.0-M4-rev1
// 4. Add the testCompile dependencies on JUnit Jupiter
24
24
testCompile junitJupiter()
25
-
26
-
// 5. (Optional) Add the testCompile dependency on the JUnit Vintage Engine
27
-
testCompile junitVintage()
28
25
}
29
26
```
30
27
31
28
## Usage
32
29
33
-
This plugin configures the `junitPlatform` task for each registered build variant of a project. Further instructions on how to write JUnit 5 tests can be found [in their User Guide][junit5ug].
30
+
This plugin configures the `junitPlatform` task for each registered build variant of a project. Starting with version `1.0.0-M4-rev1`, the plugin automatically attaches both the Jupiter & Vintage Engines.
31
+
32
+
Further instructions on how to write JUnit 5 tests can be found [in their User Guide][junit5ug].
privatestaticfinalStringVINTAGE_WARNING="AGPBI: {\"kind\":\"warning\",\"text\":\"$LOG_TAG You don't need to depend on junitVintage() directly anymore!\",\"sources\":[{},{}]}"
0 commit comments