Releases: mannodermaus/android-junit5
Plugin 1.11.2.0
This plugin brings compatibility with JUnit 5.11.2.
- JUnit 5.11.2
Plugin 1.11.1.0
This plugin brings compatibility with JUnit 5.11.1. It also bumps the version of the instrumentation libraries to 1.6.0.
- JUnit 5.11.1
Instrumentation 1.6.0
Version 1.6.0
of the instrumentation libraries has been released. This ships by default with Plugin 1.11.1.0
!
Plugin 1.11.0.0
- JUnit 5.11
Plugin 1.10.3.0
- JUnit 5.10.3
- Updates to the
jacocoOptions
DSL- Change the return type of each report type to match Jacoco expectations (html -> Directory; csv & xml -> File)
- Turn off generation of csv & xml reports by default, matching Jacoco default configuration
- Fix: Use the correct version of the instrumentation libraries with the plugin (#345)
Plugin 1.10.2.0
Note: This version of the android-junit5 plugin raises the minimum supported version of the Android Gradle Plugin from 7.0 to 8.0! If you are forced to stick to AGP 7.x, please refrain from updating to this version.
- JUnit 5.10.2
- Raise minimum supported versions for AGP and Gradle to 8.0.x and 8.0, respectively
- Allow overriding the version of the instrumentation libraries applied with the plugin
- Update Jacoco & instrumentation test DSLs of the plugin to use Gradle Providers for their input parameters (e.g.
instrumentationTests.enabled.set(true)
instead ofinstrumentationTests.enabled = true
) - Removed deprecated
integrityCheckEnabled
flag from the plugin DSL's instrumentation test options - Allow opt-in usage of extension library via the plugin's DSL
- Allow autoconfiguration of instrumentation libraries if Compose or JUnit 5 are found among the test/androidTest dependency lists
- Decouple discovery of instrumentation tests from Jupiter, allowing non-Jupiter test engines to be discovered as well
- Update lifecycle of instrumentation runner params to only be set once, instead of once per test
- Properly reported disabled dynamic tests to Android instrumentation
- Use new Variant API to register generated resource folder for instrumentation filters file
Instrumentation 1.5.0
- Fix inheritance hierarchy of
ComposeExtension
to avoid false-positive warning regarding@RegisterExtension
(#318) - Improve parallel test execution for Android instrumentation tests
- Fix invalid naming of dynamic tests when executing only a singular test method from the IDE (#317, #339)
- Prevent test methods incorrectly defined as Kotlin top-level functions from messing up Android's internal test counting, causing issues like "Expected N+1 tests, received N" (#316)
- Prevent test classes ignored by a tag from being considered for test execution, causing issues like "Expected N+1 tests, received N" (#298)
- Improve integration with Android Test Orchestrator and remove the need for
@UseTechnicalNames
(#337) - Raise minimum supported API level of
core
,extensions
andrunner
modules from 14 to 19 - Gracefully ignore unloadable classes during test discovery, e.g. those that access JVM-only APIs like
sun.*
Plugin 1.10.0.0
This release of the Gradle plugin brings compatibility with JUnit 5.10.0 and includes the following changes:
- JUnit 5.10.0
- Fix binary-incompatible API change between Gradle 7&8 for output location of Jacoco reports (#302)
Instrumentation 1.4.0
After more than two years, here is a new version of the instrumentation artifacts! We welcome two new artifacts to the family, android-test-compose
and android-test-extensions
. Here is the full list of notable changes in this version:
- Update formatting of instrumentation test names to prevent breaking generation of log files in newer versions of AGP (#263)
- Add support for test sharding (#270)
- Add support for inherited tests (#288)
- Only autoconfigure JUnit 5 for instrumentation tests when the user explicitly adds junit-jupiter-api as a dependency
- Prevent noisy logs in Logcat complaining about unresolvable annotation classes (#306)
- Add support for parallel execution of non-UI instrumentation tests (#295)
- Instroduce
android-test-compose
artifact with support for testing composable functions with JUnit 5 (#234) - Introduce
android-test-extensions
artifact with optional extensions, starting with a port of JUnit 4'sGrantPermissionRule
(#251)
Plugin 1.9.3.0
This release of the Gradle plugin brings compatibility with JUnit 5.9.3.
Since this version is released very shortly after its predecessor, please keep in mind that version's repercussions as well when upgrading your plugin: From this version onwards, the minimum supported version of the Android Gradle Plugin is 7.0. Likewise, the minimum supported version of Gradle is 7.0. If you can't update to AGP 7.0 or newer yet, please stay on the 1.8.x.y plugin line.