Link Search Menu Expand Document

Android Support

Requires pitest 1.22.0 or above.

Maven Central Version

Android support is currently a beta feature available to interested customers. It is intended to be used in combination with the Kotlin plugin.

Instrumented tests are not supported, but the plugin enables mutation analysis for tests that run in the same JVM as the code under test.

Robolectric Support

Although robolectric tests run within the same JVM as the code under test, special handling is required to ensure that the mutations are visible and that the tests run without error when executed via pitest.

Installation

Before you can use the plugin, you must first acquire a licence.

The licence file must be named arcmutate-licence.txt and placed at the root of the project. Alternatively, dynamic licence retrieval can be used.

The pitest gradle plugin is not compatible with android builds, but customers have reported success using the android specific fork.

The plugin must be placed on the classpath of the pitest build integration plugin, not on the application or test runtime classpath.

dependencies {
  pitest 'com.arcmutate:android:0.0.10'
}