diff --git a/mutation-testing/scripts/README.md b/mutation-testing/scripts/README.md index 99e899b4d6..2a26658b56 100644 --- a/mutation-testing/scripts/README.md +++ b/mutation-testing/scripts/README.md @@ -27,3 +27,7 @@ clarity/[^/]+/lib.rs.*(?:).*-> # all functions from all files of 'stacks-node' package (570 mutants) stacks-node/[^/]+/.*(?:).*-> ``` + +# Create Stable + +Only run it once and the packages that should be updated from zero. Then it will be the reference point for the upcoming PRs that modify these functions diff --git a/mutation-testing/scripts/create-stable.sh b/mutation-testing/scripts/create-stable.sh index 8a6a4af0b8..754f679beb 100644 --- a/mutation-testing/scripts/create-stable.sh +++ b/mutation-testing/scripts/create-stable.sh @@ -1,3 +1,39 @@ -# for specific packages creates the outpu +# for specific packages creates the outpup # removes everything except .txt files + +#!/bin/bash + +# Create mutants directory +mkdir -p mutants + +### Run mutation testing on the packages uncommented + +# Run mutation testing for stx-genesis package +cargo mutants --package stx-genesis --output mutants/stx-genesis + +# Run mutation testing for pox-locking package +cargo mutants --package pox-locking --output mutants/pox-locking + +# # Run mutation testing for libsigner package +# cargo mutants --package libsigner --output mutants/libsigner + +# # Run mutation testing for libstackerdb package +# cargo mutants --package libstackerdb --output mutants/libstackerdb + +# # Run mutation testing for stacks-common package +# cargo mutants --package stacks-common --output mutants/stacks-common + + +# # Run mutation testing for clarity package +# cargo mutants --package clarity --output mutants/clarity + + +# Run mutation testing for stacks-signer package - working, 10 min approx. +# cargo mutants --package stacks-signer --output mutants/stacks-signer + +# Commented out mutation testing for stacks-node package due to test errors and long compile/testing time +# cargo mutants --package stacks-node --output mutants/stacks-node + +# Commented out mutation testing for stackslib package due to long compile/testing time +# cargo mutants --package stackslib --output mutants/stackslib \ No newline at end of file