Skip to content

Commit

Permalink
Makefile: exclude windows from coverage generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Anaethelion committed Jul 19, 2023
1 parent b74bbf8 commit 5fdd569
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ test-unit: ## Run unit tests
ifdef race
$(eval testunitargs += "-race")
endif
ifeq ($(OS),Windows_NT)
$(eval testunitargs += "./...")
else
$(eval testunitargs += "-cover" "-coverprofile=tmp/unit.cov" "./...")
endif
@mkdir -p tmp
@if which gotestsum > /dev/null 2>&1 ; then \
echo "gotestsum --format=short-verbose --junitfile=tmp/unit-report.xml --" $(testunitargs); \
Expand Down

0 comments on commit 5fdd569

Please sign in to comment.