Search Gradle plugins

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)

0.9.0

Created 18 November 2024.

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.

Using the plugins DSL:

plugins {
  id("tech.apter.junit5.jupiter.robolectric-extension-gradle-plugin") version "0.9.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("tech.apter.junit5.jupiter:robolectric-extension-gradle-plugin:0.9.0")
  }
}

apply(plugin = "tech.apter.junit5.jupiter.robolectric-extension-gradle-plugin")

Using the plugins DSL:

plugins {
  id "tech.apter.junit5.jupiter.robolectric-extension-gradle-plugin" version "0.9.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "tech.apter.junit5.jupiter:robolectric-extension-gradle-plugin:0.9.0"
  }
}

apply plugin: "tech.apter.junit5.jupiter.robolectric-extension-gradle-plugin"

Learn how to apply plugins to subprojects