Skip to content

Commit

Permalink
Generate and execute assertion code when running tests
Browse files Browse the repository at this point in the history
Because types are now sort of heavily relying on `assert()`s so let's also run tests with those checks actually enabled.

https://www.php.net/ini.core#ini.zend.assertions
  • Loading branch information
spaze committed Nov 22, 2024
1 parent 3a8224b commit 266487d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ psalm:
vendor/bin/psalm.phar

tester:
vendor/nette/tester/src/tester -s -c tests/php-unix.ini --colors 1 --coverage temp/coverage.html --coverage-src src/ tests/
vendor/nette/tester/src/tester -s -c tests/php-unix.ini -d zend.assertions=1 --colors 1 --coverage temp/coverage.html --coverage-src src/ tests/

tester-include-skipped:
TEST_CASE_RUNNER_INCLUDE_SKIPPED=1 \
Expand Down

0 comments on commit 266487d

Please sign in to comment.