Files
error-prone-support/run-mutation-tests.sh
Stephan Schroevers 6131599d9d Introduce mutation test script for changed code (#757)
While there, optimize the existing `run-mutation-tests.sh` script.
2023-08-28 09:43:06 +02:00

20 lines
483 B
Bash
Executable File

#!/usr/bin/env bash
# Executes Pitest to determine the code's mutation test coverage. The set of
# tests executed can optionally be restricted by name. The results are found in
# each Maven module's `target/pit-reports` directory.
set -e -u -o pipefail
if [ "${#}" -gt 1 ]; then
echo "Usage: ${0} [TargetTests]"
exit 1
fi
targetTests="${1:-*}"
mvn clean test-compile pitest:mutationCoverage \
-DargLine.xmx=2048m \
-Dverification.skip \
-DtargetTests="${targetTests}"