tech.apter.junit5.jupiter.robolectric-extension-gradle-plugin
Owner: Apter
This repository aims to bridge the gap between JUnit 5 and Robolectric, enabling developers to leverage the benefits of both frameworks for unit testing Android applications. While Robolectric currently lacks a dedicated JUnit 5 extension, this project proposes a community-driven solution to achieve seamless integration.
https://github.com/apter-tech/junit5-robolectric-extension
Sources: https://github.com/apter-tech/junit5-robolectric-extension.git
Version 0.9.0 (latest)
Created 18 November 2024.
Add this plugin to your build using the plugins DSL:
plugins {
id("tech.apter.junit5.jupiter.robolectric-extension-gradle-plugin") version "0.9.0"
}
See also:
-
Adding the plugin to build logic for usage in precompiled script plugins.
See the relevant documentation for more information.
Add this plugin as a dependency to
<convention-plugins-build>/build.gradle(.kts)
:dependencies { implementation("tech.apter.junit5.jupiter.robolectric-extension-gradle-plugin:tech.apter.junit5.jupiter.robolectric-extension-gradle-plugin.gradle.plugin:0.9.0") }
It can then be applied in the precompiled script plugin:plugins { id("tech.apter.junit5.jupiter.robolectric-extension-gradle-plugin") }
-
The legacy method of plugin application.
See the relevant documentation for more information.buildscript { repositories { gradlePluginPortal() } dependencies { classpath("tech.apter.junit5.jupiter.robolectric-extension-gradle-plugin:tech.apter.junit5.jupiter.robolectric-extension-gradle-plugin.gradle.plugin:0.9.0") } } apply(plugin = "tech.apter.junit5.jupiter.robolectric-extension-gradle-plugin")
- Applying plugins to all subprojects .