Android Junit5 Versions Save

Testing with JUnit 5 for Android.

instrumentation-1.4.0

6 months ago

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's GrantPermissionRule (#251)

plugin-1.10.0.0

6 months ago

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)

plugin-1.9.3.0

1 year ago

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.

plugin-1.9.2.0

1 year ago

This release of the Gradle plugin brings compatibility with JUnit 5.9.2.

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.

plugin-1.9.1.0

1 year ago

This release of the Gradle plugin brings compatibility with JUnit 5.9.1.

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.

plugin-1.9.0.0

1 year ago

This release of the Gradle plugin brings compatibility with JUnit 5.9.0, as well as several internal refactorings and improvements. 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 previous release.

  • JUnit 5.9.0
  • Add support for Android Gradle Plugin 8.x.y
  • Raise minimum supported versions for AGP and Gradle to 7.0.x and 7.0, respectively
  • Refactor implementation to mostly use new Variant API from Android Gradle Plugin
  • Remove integrity check and the integrityCheckEnabled flag for instrumentation tests (they are auto-configured if junit-jupiter-api is found on the androidTest classpath)
  • Use the correct Kotlin source directory set on AGP 7 (@Goooler, #279)
  • Recommend new plugin DSL for configuration over legacy DSL
  • Work around breaking binary change for PackagingOptions in AGP 8.x

plugin-1.8.2.1

1 year ago

A patch release to improve compatibility with recent versions of Gradle and Kotlin.

  • Support Gradle configuration cache (#265)
  • Replace usage of deprecated destinationDir compiler task property to support Kotlin 1.7.0 and beyond (#274)

plugin-1.8.2.0

2 years ago

This release of the Gradle plugin brings compatibility with JUnit 5.8.2.

plugin-1.8.1.0

2 years ago

This release of the Gradle plugin brings compatibility with JUnit 5.8.1 and some internal restructuring around deprecated APIs to preent warnings on Gradle 7.0 and above.

  • JUnit 5.8.1
  • Replaced deprecated method Report.setEnabled with Report.required.set to remove deprecation warnings in Gradle 7+ (CC @gmarques33, #260)

instrumentation-1.3.0

2 years ago

This release of the instrumentation libraries requires JUnit 5.8.0 or newer. Please check your dependency declarations!

Changed

  • Restructured and converted internal code of core and runner modules to 100% Kotlin

Fixed

  • Running an individual test method with parameters will properly execute that test, even from the IDE (#199) (Note: Due to limitations with Android's instrumentation, this test would be reported without its parameters in the report)
  • Running an individual test method with @DisplayName will properly execute that test, even from the IDE (#207) (Note: Due to limitations with Android's instrumentation, this test would be reported with its technical method name instead of the display name when executed in isolation)