![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
pl.droidsonroids.pitest.aggregator:pl.droidsonroids.pitest.aggregator.gradle.plugin
Advanced tools
Gradle plugin for PIT Mutation Testing in Android projects
This is a fork of gradle-pitest-plugin which supports Android gradle projects.
build.gradle
plugins {
id 'pl.droidsonroids.pitest' version '0.2.12'
}
plugins {
id("pl.droidsonroids.pitest") version "0.2.12"
}
buildscript {
repositories {
mavenCentral()
google()
}
dependencies {
classpath("pl.droidsonroids.gradle:gradle-pitest-plugin:0.2.12")
}
}
plugins {
id("com.android.application")
//or id("com.android.library")
//or id("com.android.test")
id("pl.droidsonroids.pitest")
}
pitest<variant>
tasks will be created for each build variant
(eg. pitestProDebug
for pro
product flavor and debug
build type).
Additionally pitest
task will run tasks for all variants.
After the measurements a report created by PIT will be placed in ${PROJECT_DIR}/build/reports/pitest/<variant>
directory.
For more information see README of source project
This plugin by default adds mockable Android JAR (generated by Android Gradle Plugin) to classpath used under pitest tests.
If you are using alternative Android framework in tests, like Robolectric or
UnMock Gradle Plugin, you may want to add excludeMockableAndroidJar
to pitest configuration eg:
pitest {
targetClasses = ['com.myapp.*']
excludeMockableAndroidJar = true
}
In such case default mockable Android JAR won't be added and alternative one will be used under tests.
Issue occurs when using Android API
without mocking it.
Pitest verbose logs may list exceptions like ExceptionInitializerError
.
The fastest solution is to set android.testOptions.unitTests.returnDefaultValues = true
.
See Local unit testing documentation
to see other consequences of this change.
FAQs
Gradle plugin for PIT Mutation Testing in Android projects
We found that pl.droidsonroids.pitest.aggregator:pl.droidsonroids.pitest.aggregator.gradle.plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.