Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ update-readme:

update: update-readme

$(CODE_COVERAGE_REPORT_NAME_UNIT):
$(CODE_COVERAGE_REPORT_FOLDER):
mkdir -p $@

test-go: $(CODE_COVERAGE_REPORT_NAME_UNIT)
test-go: $(CODE_COVERAGE_REPORT_FOLDER)
# -count=1 is included to invalidate the test cache. This way, if you run "make test-go" multiple times
# you will get fresh test results each time. For instance, changing the source of mocked packages
# does not invalidate the cache so having the -count=1 to invalidate the test cache is useful.
go run gotest.tools/gotestsum --format standard-verbose -- -count 1 -coverprofile=$(CODE_COVERAGE_REPORT_NAME_UNIT).out ./...

test-go-ci: $(CODE_COVERAGE_REPORT_NAME_UNIT)
test-go-ci: $(CODE_COVERAGE_REPORT_FOLDER)
mkdir -p $(PWD)/build/test-results
mkdir -p $(PWD)/build/test-coverage
go run gotest.tools/gotestsum --junitfile "$(PWD)/build/test-results/TEST-unit.xml" -- -count=1 -coverprofile=$(CODE_COVERAGE_REPORT_NAME_UNIT).out ./...
Expand Down