J

JUnit5 Robolectric Extension

A unit testing framework for Android.

About JUnit5 Robolectric Extension

This is an experimental project that aims to bridge the gap between JUnit 5 and Robolectric, providing a way to run your Android unit tests using the modern JUnit 5 framework while leveraging Robolectric’s in-memory environment.

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.

Key features:

  • JUnit 5 Compatibility: Run your tests with the latest JUnit 5 features and syntax.

Current Limitations

  • Parallel Execution: Parallel test execution only experimentally supported with classes.
  • Configuration:
    • Robolectric @Config’s sdk parameter annotation can only be set on outermost test class.
    • @GraphicsMode annotations can only be set on outermost test class.
  • Experimental Status: This extension is still under development, and its API might change in future versions.

Tags:

#Mobile Testing#Framework#Android#Github#Open Source
Previous Tool Next Tool