Skip to content

Commit

Permalink
mutation script: minor changes (#2112)
Browse files Browse the repository at this point in the history
* Changes I made to mutation test script for it to work locally

* add .gitignore
  • Loading branch information
ValarDragon authored Jul 18, 2022
1 parent dcc82d7 commit 3631925
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -204,3 +204,5 @@ tools-stamp
/tests/localosmosis/.osmosisd/*
*.save
*.save.*

mutation_test_result.txt
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ test-e2e-skip-upgrade:
@VERSION=$(VERSION) OSMOSIS_E2E_SKIP_UPGRADE=True go test -mod=readonly -timeout=25m -v $(PACKAGES_E2E)

test-mutation:
@sh scripts/mutation-test.sh
@bash scripts/mutation-test.sh

benchmark:
@go test -mod=readonly -bench=. $(PACKAGES_UNIT)
Expand Down
3 changes: 3 additions & 0 deletions scripts/mutation-test.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ OUTPUT=$(go run github.com/zimmski/go-mutesting/cmd/go-mutesting --disable=$DISA
RESULT=$(echo "$OUTPUT" | grep 'The mutation score')
SCORE=$(echo "$RESULT" | grep -Eo '[[:digit:]]\.[[:digit:]]+')

echo "writing mutation test result to mutation_test_result.txt"
echo "$OUTPUT" > mutation_test_result.txt

echo $RESULT

# Return a non-zero exit code if the score is below 75%
Expand Down

0 comments on commit 3631925

Please sign in to comment.