Skip to content

Commit 6556324

Browse files
committed
Incremental run since initial commit.
1 parent 248f31b commit 6556324

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ecommerce/pricing/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ test:
99
@bundle exec ruby -e "require \"rake/rake_test_loader\"" test/*_test.rb
1010

1111
mutate:
12+
$(eval ROOT_COMMIT := $(shell git rev-list --max-parents=0 HEAD))
1213
$(eval SUBJECTS_TO_RUN := $(strip $(CI_MUTATE_SUBJECTS)))
1314
$(eval TEMP_ACTUAL_MUTANT_ARGS :=)
1415

@@ -23,7 +24,7 @@ ifeq ($(MUTANT_MODE_INTERNAL),incremental)
2324
endif
2425

2526
@echo " MUTANT_SINCE_TARGET_INTERNAL appears to be set and non-empty: '[$(MUTANT_SINCE_TARGET_INTERNAL)]'"
26-
$(eval TEMP_ACTUAL_MUTANT_ARGS := --since $(MUTANT_SINCE_TARGET_INTERNAL))
27+
$(eval TEMP_ACTUAL_MUTANT_ARGS := --since $(ROOT_COMMIT))
2728
@echo " Action: Set for Incremental Mutation."
2829
@echo " Target for --since: '$(MUTANT_SINCE_TARGET_INTERNAL)'"
2930
else

rails_application/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ dev:
66
@$(MAKE) -j 10 web css
77

88
mutate: ## Run mutation tests
9+
$(eval ROOT_COMMIT := $(shell git rev-list --max-parents=0 HEAD))
910
$(eval ACTUAL_MUTANT_ARGS :=)
1011
$(eval SUBJECTS_TO_RUN := $(strip $(CI_MUTATE_SUBJECTS)))
1112

@@ -14,7 +15,7 @@ ifeq ($(MUTANT_MODE),incremental)
1415
ifndef MUTANT_SINCE_TARGET
1516
$(error MUTANT_MODE is 'incremental', but MUTANT_SINCE_TARGET is not set. This variable should be set by the CI workflow.)
1617
endif
17-
$(eval ACTUAL_MUTANT_ARGS := --since $(MUTANT_SINCE_TARGET))
18+
$(eval ACTUAL_MUTANT_ARGS := --since $(ROOT_COMMIT))
1819
@echo "Mutation Mode: Incremental"
1920
@echo "Target for --since: $(MUTANT_SINCE_TARGET)"
2021
else

0 commit comments

Comments
 (0)