Skip to content

Commit

Permalink
Restore producing test coverage report for each unit test run
Browse files Browse the repository at this point in the history
  • Loading branch information
chudilka1 committed Nov 27, 2024
1 parent 70f942f commit f6299b3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tools/bin/go_core_tests
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ EXTRA_FLAGS=""

echo "Test execution results: ---------------------"
echo ""
if [[ $GITHUB_EVENT_NAME == "schedule" ]]; then
EXTRA_FLAGS="-covermode=atomic -coverpkg=./... -coverprofile=coverage.txt"
fi
go test "$EXTRA_FLAGS" $1 | tee $OUTPUT_FILE | grep -Ev '\[no test files\]|\[no tests to run\]'
go test -covermode=atomic -coverpkg=./... -coverprofile=coverage.txt $1 | tee $OUTPUT_FILE | grep -Ev '\[no test files\]|\[no tests to run\]'
EXITCODE=${PIPESTATUS[0]}

# Assert no known sensitive strings present in test logger output
Expand Down

0 comments on commit f6299b3

Please sign in to comment.