-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add: generate also html coverage reports when running script 'test' #8266
Conversation
Co-authored-by: Samuel Asor <8720569+sammyskills@users.noreply.github.com>
When running 'composer test', if XDebug is installed and setup (xdebug.mode = coverage), in addition to the file build/logs/clover.xml, generate also nice html coverage reports in folder build/coverage. PHPunit runs normally if XDebug is missing or it is not set for coverage. View the coverage report at build/coverage/index.html.
Why not just add it to the phpunit.xml.dist so locally it can be seen too? |
…l.dist Changed destination folder to build/coverage/html. Inline with framework requirements added setting highLowerBound with value 80
Good idea. Thank you. |
I'm fine with this change. |
Okay. I'm on it. |
docs: improve pagination
… documented the changes
<html outputDirectory="tests/coverage" highLowerBound="80"/> | ||
<text outputFile="tests/coverage.txt"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like to put files in tests/
because it is for test code.
Use build/
instead.
@@ -25,14 +25,14 @@ | |||
class PagerRenderer | |||
{ | |||
/** | |||
* First page number. | |||
* First page number in the set of links to be displayed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You seemed to do something wrong with git.
Please get rid of unrelated commits from this PR.
I will do another PR. |
When running 'composer test', if XDebug is installed and setup (xdebug.mode = coverage), in addition to the file build/logs/clover.xml, generate also nice html coverage reports in folder build/coverage.
PHPunit runs normally if XDebug is missing or it is not set for coverage.
View the coverage report at build/coverage/index.html.
Description
Explain what you have changed, and why.
Checklist: