Repository navigation
first public release
First public release of spark-mutator — semantic mutation testing for Apache Spark.
Runs your suite once unmutated, discovers every mutation site in the analyzed
Catalyst plans, then re-runs only the affected tests against each mutant —
fail-fast — and reports which mutants your suite kills.
Highlights
- PySpark — pytest plugin (
pytest --spark-mutate), zero pipeline changes - Java & Scala — Maven plugin (
spark-mutation-testing:mutate, fork-per-mutant) and JUnit 5 extension (in-process) - Gradle — thin path via the JUnit 5 extension, no plugin needed
- Spark support — 3.5.x (Scala 2.12 / 2.13) and 4.2.x (Scala 2.13), pinned cross-version goldens
- Mutator families — Join, Filter, Aggregate, Window, Null-Coalesce, Project (incl. Decimal → Double)
- Reports — JSON / SARIF 2.1.0 / HTML, plus per-test
test-value-reportthat flags redundant test cases - Governance gates — mutation-score floor, ERRORED zero-tolerance, NOT_APPLIED ratio
- Resilience — per-mutant timeout watchdog on both paths, driver circuit breaker, deterministic mutant ids
Install
PySpark:
pip install pytest-spark-mutation-testing
Java / Scala (test scope — match the bundle to your Spark/Scala line):
<dependency>
<groupId>io.github.wpunit13</groupId>
<artifactId>mutator-junit5</artifactId>
<version>1.0.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.github.wpunit13</groupId>
<artifactId>interceptor-bundle-spark-3.5_2.13</artifactId>
<version>1.0.0</version>
<scope>test</scope>
</dependency>
Maven plugin (CI-grade fork-per-mutant loop):
<plugin>
<groupId>io.github.wpunit13</groupId>
<artifactId>spark-mutation-testing-maven-plugin</artifactId>
<version>1.0.0</version>
</plugin>
Documentation
- Developer guide
- Runnable proofs — weak suite ⇒ mutants survive; hardened suite ⇒ killed