Skip to content
This repository was archived by the owner on Dec 1, 2022. It is now read-only.

Improve code coverage reporting #11

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

stevegrunwell
Copy link
Contributor

Updated composer test-coverage to include a summary in the command-line test runner, as well as checks to ensure Xdebug is enabled in VVV.

Example output:

$ composer test-coverage
> bin/generate-test-coverage.sh

Enabling Xdebug in order to generate test coverage:
php7.0-fpm stop/waiting
php7.0-fpm start/running, process 728

Installing...
Running as single site... To run multisite, use -c tests/phpunit/multisite.xml

Not running ajax tests. To execute these, use --group ajax.
Not running ms-files tests. To execute these, use --group ms-files.
Not running external-http tests. To execute these, use --group external-http.
PHPUnit 5.7.21 by Sebastian Bergmann and contributors.

............................................                      44 / 44 (100%)

Time: 22.99 seconds, Memory: 32.00MB

OK (44 tests, 77 assertions)

Generating code coverage report in HTML format ... done


Code Coverage Report:
  2017-08-23 15:34:35

 Summary:
  Classes:        (0/0)
  Methods:        (0/0)
  Lines:   100.00% (103/103)

Additional code coverage details:
/srv/www/liquidweb-default/public_html/wp-content/plugins/sticky-tax/tests/coverage/

…rage` by ensuring Xdebug is enabled within VVV and including a high-level summary on the CLI.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant