diff --git a/README.md b/README.md index a91368b1..5ef944ef 100644 --- a/README.md +++ b/README.md @@ -239,6 +239,36 @@ At this time, Google hasn't shared any immediate plans to bring first-party supp - [Add support for JUnit 5 (issuetracker.google.com)](https://issuetracker.google.com/issues/127100532) - [JUnit 5 support (github.com/android/android-test)](https://github.com/android/android-test/issues/224) +## Support for @Rules + +Since JUnit 5 has replaced the `@Rule` mechanism with Extensions, the following artifacts help bridge the gap until Android officially transitions to JUnit 5. + +### InstantExecutorExtension + +Replaces `InstantTaskExecutorRule` in JUnit 5. + +
+ Kotlin + + ```kotlin + dependencies { + testImplementation("io.github.neboskreb:instant-task-executor-extension:1.0.0") + } + ``` +
+ +
+ Groovy + + ```groovy + dependencies { + testImplementation 'io.github.neboskreb:instant-task-executor-extension:1.0.0' + } + ``` +
+ +For more details see [instant-task-executor-extension](https://github.com/neboskreb/instant-task-executor-extension) on GitHub. + ## Building Locally This repository contains multiple modules, divided into two sub-projects. The repository's root directory contains build logic shared across the sub-projects, which in turn use symlinks to connect to the common build scripts in their parent folder.