From f6299b3fae492f8775cc6a559c46eafb4274077d Mon Sep 17 00:00:00 2001 From: Alexandr Yepishev Date: Wed, 27 Nov 2024 23:49:38 +0000 Subject: [PATCH] Restore producing test coverage report for each unit test run --- tools/bin/go_core_tests | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/bin/go_core_tests b/tools/bin/go_core_tests index 0fffcb72a39..eab4af76931 100755 --- a/tools/bin/go_core_tests +++ b/tools/bin/go_core_tests @@ -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