Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 50d049d

Browse files
committed
Only use coverage profiles from test runs to create combined coverage profile.
- Prevent issue where the combined coverage profile is combined with itself
1 parent 3953915 commit 50d049d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ test:
2828
@mkdir .coverage
2929
make test-with-flags TEST_FLAGS='-v -race -covermode atomic -coverprofile .coverage/_$$(RAND).txt -bench=. -benchmem -timeout 20m'
3030
@echo 'mode: atomic' > .coverage/combined.txt
31-
@cat .coverage/*.txt | grep -v 'mode: atomic' >> .coverage/combined.txt
31+
@cat .coverage/_*.txt | grep -v 'mode: atomic' >> .coverage/combined.txt
3232

3333

3434
test-with-flags:

0 commit comments

Comments
 (0)