PHPUnit code coverage regex does not work

Summary

The regex to capture code coverage for PHPUnit does not work.

Steps to reproduce

Generate a code coverage report with PHPUnit and capture the coverage with the suggested regex (i.e. ^\s*Lines:\s*\d+.\d+\%). I suspect it is also an issue for pytest-cov (\d+\%\s*$) and go test -cover (coverage: \d+.\d+% of statements).

What is the current bug behavior?

It does not capture the code coverage and display in merge requests.

What is the expected correct behavior?

It should capture the code coverage and display in merge requests.

Possible fixes

I think that using capturing regexes would fix the issue.

Assignee Loading
Time tracking Loading