stryker-mutator/stryker4s
71.3
Strong · 7 November 2026
7.6k
lines of production code
Scala
primary language
4
measurements over time
What this system is
Features
Add SBT test interface mapping for mutation testing
A new \TestInterfaceMapper\ component has been added to the SBT module to bridge SBT's native testing API with Stryker4s' internal test runner model. This mapper translates SBT test groups, fingerprints (such as annotated or subclass-based definitions), and selectors into the standardized \TestGroup\ and \TaskDefinition\ structures required by the mutation testing engine, enabling Stryker4s to correctly identify and execute tests within SBT projects.
modules/sbt/src/main/scala/stryker4s/model · high confidence
Add SBT-specific logging implementation
Introduces a new SbtLogger class that bridges the internal logging system with SBT's native logger, allowing users to see Stryker4s output directly within the SBT console with appropriate log levels and color support.
modules/sbt/src/main/scala/stryker4s/log · high confidence
Add Stryker4s integration for Mill build tool
Users can now run Stryker4s mutation testing directly within Mill projects by mixing in the \Stryker4sModule\ trait. This adds a \stryker\ command that automatically discovers tests, compiles mutated sources using Mill's Zinc worker, and executes the mutation tests. Configuration is handled via Mill task definitions (e.g., \strykerMutate\, \strykerTestFilter\) which are exposed to Stryker4s, allowing users to control mutation scope, test filtering, reporting, and thresholds using standard Mill configuration patterns.
modules/mill/src/main · high confidence
Added PowerShell script for running scalafmt on Windows
A new PowerShell script (bin/scalafmt.ps1) has been added to allow users to invoke scalafmt directly from Windows command-line environments. The script delegates execution to the existing Java-based scalafmt binary located in the bin directory, passing through any provided arguments.
bin · high confidence
Initial release of the Stryker4s Maven plugin
This change introduces the Stryker4s Maven plugin as a standalone project, separate from the core SBT-based build. It includes the necessary configuration files (stryker4s.conf, settings.xml) and documentation (README.MD) to enable mutation testing for Maven-based Scala projects. The plugin supports overriding compiler flags via Maven profiles to handle fatal warnings during mutation and relies on the locally published stryker4s-core dependency for its core functionality.
maven · high confidence
Introduce command-runner module for CLI execution and process-based mutation testing
This change introduces the new \commandRunner\ module, which provides the entry point (\Stryker4sMain\) and runtime infrastructure for running Stryker4s from the command line. It includes an argument handler that allows users to configure logging levels via CLI flags (e.g., \--debug\), a \ProcessTestRunner\ that executes test commands as external processes to determine mutant status (Survived, Killed, Timeout, or RuntimeError), and a main runner class that wires these components together with timeout support and CLI configuration sources. The module also includes comprehensive tests for the argument parsing and process runner logic.
modules/commandRunner · high confidence
Introduction of LegacySbtTestRunner for SBT compatibility
A new LegacySbtTestRunner class has been added to the SBT runner module to handle test execution via the SBT interface. This component implements the TestRunner interface, managing initial test runs and mutant execution by interacting with SBT's state and project settings. It specifically targets a defined project reference, appending mutation-specific Java options to the test configuration and interpreting the resulting test output to determine if mutants are killed, survived, or caused runtime errors.
modules/sbt/src/main/scala/stryker4s/sbt/runner · high confidence
Introduction of modular configuration system and core runtime structure
The core module now features a comprehensive, multi-source configuration system that aggregates settings from CLI arguments, HOCON files, and defaults, supporting detailed options for mutation targets, test filters, dashboard reporting, and Scala dialects. This is underpinned by a new logging API with color support and a central \Stryker4s\ runtime class that orchestrates the mutation testing lifecycle, including file resolution, mutation, execution, and result reporting.
modules/core · high confidence
New Maven and XSBT logger implementations
Added MavenMojoLogger and XsbtiLogger classes to bridge internal logging with Maven and XSBT environments. MavenMojoLogger adapts the internal Logger interface to Maven's Log API, respecting color settings and log levels. XsbtiLogger wraps the internal Logger to provide an xsbti.Logger implementation, enabling integration with sbt-based build tools.
maven/src/main/scala/stryker4s/log · high confidence
New testkit utilities for logging assertions and file resources
The testkit module now includes new helper classes to simplify testing. LogMatchers provides MUnit-based assertions to verify that specific log messages were recorded at expected levels (Debug, Info, Warn, Error), including support for asserting on IO effects and handling ANSI color codes. FileUtil offers a convenient way to load test resources as fs2 Paths or Strings. Additionally, Stryker4sSuite and Stryker4sIOSuite provide a base test suite with custom assertions for comparing Scala meta trees and parsing source code, while TestLogger captures log events for verification.
modules/testkit · high confidence
Stryker4s project bootstrapped with SBT 2.x and Mill plugin support
The build infrastructure has been migrated to SBT 2.0.10 and reorganized into a modular structure. A new Mill plugin has been added, complete with scripted integration tests that verify mutation score reporting and threshold enforcement. The release process now explicitly handles Maven deployment via custom SBT commands, and the dependency definitions have been consolidated into a centralized object.
project · high confidence
Behavioural changes
Maven runner rewritten with test-runner support and rollback capability
The Maven integration has been completely rewritten to support the new test-runner architecture and enable mutant rollback. The runner now dynamically resolves the test-runner, Scala compiler, and bridge artifacts at runtime using Eclipse Aether, rather than relying on hardcoded versions. Compilation is performed via Zinc in two passes: mutated main sources are compiled first to identify specific compiler errors (allowing individual mutants to be rolled back if they fail to compile), followed by test sources compiled against the mutated classes. Test discovery now uses the sbt.testing API to detect frameworks like ScalaTest, Munit, and JUnit, and test selection is aligned with the project's enabled Maven plugins (Surefire or scalatest-maven-plugin) to ensure parity with standard \mvn test\ execution.
maven/src/main/scala/stryker4s/maven/runner · high confidence
New Maven plugin with test-runner and rollback support
The Maven plugin has been rewritten to use a dedicated test-runner process (similar to the sbt and Mill plugins) instead of the previous in-process approach. This change introduces support for rollback capabilities and allows the plugin to resolve configuration directly from the Maven project, such as deriving the Scala dialect from the project's version and SCM URL for dashboard reporting. Users benefit from improved stability and consistency with other build tools, as the mutation testing now runs in a separate forked JVM process.
maven/src/main/scala/stryker4s/maven · high confidence
Stryker4s SBT plugin rewritten with new configuration source and runner architecture
The SBT plugin has been completely rewritten to support modern SBT features and improve reliability. A new \SbtConfigSource\ now reads configuration directly from SBT settings (e.g., \strykerMutate\, \strykerBaseDir\), replacing previous methods. The \Stryker4sSbtRunner\ has been updated to use a new test runner architecture that integrates with the \stryker4s-testrunner\ library, enabling better compiler error detection and rollback support. The plugin now enforces a minimum SBT version of 1.11.2 and includes fixes for Windows glob expressions, cross-project compatibility, and fatal warning handling during mutation.
modules/sbt/src/main/scala/stryker4s/sbt · high confidence
Test runner rewritten in Scala with socket-based communication
The test runner module has been rewritten in Scala, replacing the previous implementation. It now communicates with the main process via TCP or Unix sockets, resolving the connection type from system properties. The new runner manages test execution and mutation testing through a message handler, leveraging the sbt testing interface to run tests and collect coverage data concurrently.
modules/testRunner · high confidence
Updated SBT plugin compatibility layer for SBT 2.x
The SBT plugin's compatibility layer has been updated to support SBT 2.x. This change modifies how tasks are executed to detach the build state, preventing errors from bubbling up during task runs, and adapts internal path conversion methods to align with SBT 2.x APIs.
modules/sbt/src/main/scala-3 · high confidence
Fixes
Fix SBT plugin task scoping for subprojects
The SBT plugin now correctly scopes task queries (such as loading test frameworks and compiling) to the specific invoking project. This resolves a bug where running Stryker in a subproject (e.g., \app/stryker\) incorrectly resolved against the auto-generated root project, which previously led to empty test frameworks and a silent 0% mutation score. The fix ensures that mutation testing works accurately in multi-project SBT builds where the target code resides in a subdirectory.
modules/sbt/src/sbt-test/sbt-stryker4s/test-subproject · high confidence
Test coverage
Add Mill build-tool integration test; Added SBT plugin integration test suite; Added tests for Maven plugin components; Added tests for TestInterfaceMapper; Added tests for the Mill plugin integration.
Dependencies
Maven plugin dependencies updated to Scala 3.9.0 and Maven 3.9.16
The Maven plugin's build configuration has been updated to use Scala 3.9.0 and align with Maven 3.9.16 core and plugin APIs. This upgrade ensures compatibility with the latest Maven ecosystem standards and Scala 3 features for the mutation testing plugin.
(dependencies) · high confidence
Housekeeping
Initial project scaffolding and configuration
The repository has been initialized with essential configuration files including .gitignore, .gitattributes, .scalafmt.conf, .scalafix.conf, and .scala-steward.conf, alongside documentation files like README.md, CHANGELOG.md, and CLAUDE.md to guide development and tooling.
(repo-wide) · high confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 68 → 71 (+2.9)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.
Lenses
- Code Health 74 → 74 (+0.0)
- Architecture 88 → 88 (+0.1)
- Maturity 64 → 67 (+3.4)
- Readiness 69 → 73 (+4.3)
- Security 71 → 71 (+0.0)
- Performance 83 → 100 (+16.6)
Resolved (2)
- Change coupling: DashboardReporter.scala ↔ Dependencies.scala (modules/core/src/main/scala/stryker4s/report/DashboardReporter.scala)
- Off-boarding risk: anonymized user #1
New (1)
- Off-boarding risk: anonymized user #1
Changes since last survey
- 9 commits — 9 feature/other, 0 fixes
By area
- .github/workflows — 3 commits
- maven/pom.xml — 3 commits
- project/Dependencies.scala — 2 commits
- project/build.properties — 1 commit
Notable commits
- change: build(deps): bump coursier/cache-action from 8.1.1 to 8.2.0 (#2186)
- change: build(deps): bump coursier/cache-action from 8.2.0 to 9.0.1 (#2190)
- change: build(deps): bump org.scala-sbt:zinc_3 from 2.0.4 to 2.0.5 in /maven (#2192)
- change: build(deps): bump sbt/setup-sbt from 1.5.12 to 1.5.13 (#2191)
- change: build(deps): update circe, fs2 from 4.1.0 to 4.1.1 (#2193)
- change: build(deps): update mill-libs-scalalib, mill-testkit from 1.3.0 to 1.3.1 (#2187)
- change: build(deps): update sbt from 2.1.0-RC1 to 2.1.0-RC2 (#2189)
- change: build(deps-dev): bump org.apache.maven.plugins:maven-surefire-plugin (#2188)
- change: build(deps-dev): bump org.sonatype.central:central-publishing-maven-plugin (#2185)
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
stryker-mutator/stryker4s was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 7 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 22676b17d134f3128c0973d1d071ec17674d50e9 — the exact code this score is about.
- Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.3+preprod-5f8314471808.