Modern testing with JUnit for Android.
Repo mannodermaus/android-junit-framework, read from GitHub 10 h ago. mannodermaus has not joined Take My Repo.
Full Changelog: plugin-2.0.1...plugin-2.0.2
This release fixes an error with the Gradle Module Metadata published alongside the instrumentation libraries. In particular, the artifact ID of the transitive dependency on android-test-core from android-test-compose was broken. This is remedied now.
Happy New Year! 2026 marks the ten year anniversary of this project, as I released the very first version all the way back in September 2016. Time flies, man. Therefore, please join me in celebration and welcome this new year by bumping both the plugin and instrumentation to a whole new major version, and a whole new name. android-junit5 becomes android-junit-framework!! ✨
I have changed the versioning scheme before and I'm not afraid to do it again. Going forward, this project is no longer tightly coupled to a particular version of the JUnit Framework. Furthermore, both pieces of android-junit-framework are now compatible with JUnit 5 and 6. (Note that for JUnit 6, you need a baseline of Java 17, so your Android devices need to run API 35 or newer to make this happen.) Furthermore, there is a behavioral change when it comes to skipping vs failing on unsupported devices. Please find the gist below.
I hope that the project will mature into a state where people can choose their preferred JUnit freely. Inspired by the great documentations of Zac and co., one of the next milestones on my list is a revamped documentation for the project. I also finally want to nuke the awful wiki section (it's outdated AF) and move all documentation to a central place.
Stay tuned, and all the best for a successful 2026.
– Marcel / mannodermaus ❤️
OutputDirectoryProvider with its correct replacementde.mannodermaus.android-junit as the new plugin IDinstrumentationTests.behaviorForUnsupportedDevices
runComposeTest API from ComposeExtensionde.mannodermaus.junit.unsupported.behaviorThis release brings compatibility with JUnit 5.14.0. Most notably, there is a breaking change inside of that version of JUnit 5, meaning that if you want to use it, you will need to keep this plugin in sync as well.
Instrumentation 1.9.0 is here. This is intended for use with Plugin 1.14.0.0 and newer. Acess to a newly-deprecated method has been changed in an internal API.
This release brings compatibility with JUnit 5.13.4. As with the last releases since 1.13.2.0, we restrict all remaining usages of the old plugin and variant API (e.g. BaseExtension and friends). This was always restricted to users of the Jacoco integration, but now there should be no problems for those users.
However, in response to the move to the new DSL, Jacoco integration is effectively deprecated until further notice if you are using AGP 9.0.0-alpha04 or newer. We will see if Google reintroduces some of the APIs that we still needed to rely on the old DSL for, but as of now the integration is disabled and a warning is logged.