Skip to content

Commit 323d773

Browse files
authored
Ensures the coverage is refreshed when the source of the test code (#159)
changes
1 parent e3ed092 commit 323d773

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ CCYELLOW=\033[0;33m
1313
CCEND=\033[0m
1414

1515
# PHP specific variables
16+
SRC_TESTS_FILES=$(shell find src/ tests/ -type f)
1617
COVERAGE_DIR = dist/coverage
1718
COVERAGE_XML = $(COVERAGE_DIR)/xml
1819
COVERAGE_HTML = $(COVERAGE_DIR)/html
@@ -79,7 +80,7 @@ phpunit: $(PHPUNIT_BIN)
7980

8081
.PHONY: phpunit_coverage_infection
8182
phpunit_coverage_infection: ## Runs PHPUnit with code coverage for Infection
82-
phpunit_coverage_infection: $(PHPUNIT_BIN) vendor
83+
phpunit_coverage_infection: $(PHPUNIT_BIN) $(SRC_TESTS_FILES) vendor
8384
$(PHPUNIT_COVERAGE_INFECTION)
8485

8586
.PHONY: phpunit_coverage_html

0 commit comments

Comments
 (0)