DEV Community

Discussion on: Adding PHPUnit Test Log and Coverage to GitLab CI/CD Pipeline

Collapse
 
swalbrun profile image
s.walbrun

If you use Laravel, so accordingly with the command
php artisan test --coverage
the tests, then the regex is not correct. Instead just use this regex
coverage: '/^\s*Total\sCoverage\s\.+\s\d+\.\d+\s\%/'