mirror of
https://github.com/unclebob/mutator.git
synced 2026-11-07 10:43:49 +00:00
Add a multi-language mutation tester that writes .metrics/mutate for uml-viewer.
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
# Run the mutation tool, creating a local virtualenv on first use.
|
||||
ROOT=$(CDPATH= cd -- "$(dirname "$0")" && pwd)
|
||||
PY="$ROOT/.venv/bin/python"
|
||||
if [ ! -x "$PY" ]; then
|
||||
python3 -m venv "$ROOT/.venv"
|
||||
"$ROOT/.venv/bin/pip" install -e "$ROOT"
|
||||
fi
|
||||
exec "$PY" -m mutator "$@"
|
||||
Reference in New Issue
Block a user