Testing and Quality#
Epicrypt ships with a multi-layer quality pipeline.
Main Commands#
composer test:syntax
composer test:code
composer test:lint
composer test:sniff
composer test:static
composer test:security
composer test:refactor
composer tests
composer tests runs the full test:all sequence.
Coverage#
Configuration is present in phpunit.xml / pest.xml, but coverage requires a driver.
Run Coverage#
vendor/bin/pest --coverage
If you see No code coverage driver is available, enable one of:
xdebugpcov
Examples:
php -d xdebug.mode=coverage vendor/bin/pest --coverage
# or
php -d pcov.enabled=1 vendor/bin/pest --coverage
Static and Security Analysis#
PHPStan:
composer test:staticPsalm security mode:
composer test:security
Refactor Safety#
Rector dry-run:
composer test:refactor