Skip to content

Commit

Permalink
feat: better coverage threshold handling
Browse files Browse the repository at this point in the history
  • Loading branch information
COil committed Oct 6, 2024
1 parent f82917e commit 0fbd96f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
SHELL = sh
.DEFAULT_GOAL = help


## —— 🎶 The MicroSymfony Makefile 🎶 ——————————————————————————————————————————
help: ## Outputs this help screen
@grep -E '(^[a-zA-Z0-9_-]+:.*?##.*$$)|(^##)' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}{printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}' | sed -e 's/\[32m##/[33m/'
Expand Down
2 changes: 1 addition & 1 deletion castor.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function coverage(): int
return $ec;
}

return success(exit_code(sprintf('php bin/coverage-checker.php var/coverage/clover.xml %s', COVERAGE_THRESHOLD), quiet: false));
return success(exit_code(sprintf('php bin/coverage-checker.php var/coverage/clover.xml %d', COVERAGE_THRESHOLD), quiet: false));
}

#[AsTask(namespace: 'test', description: 'Open the PHPUnit code coverage report (var/coverage/index.html)', aliases: ['cov-report'])]
Expand Down

0 comments on commit 0fbd96f

Please sign in to comment.