Skip to content
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

Show time spent on code coverage report generation #3586

Closed
morozov opened this issue Apr 4, 2019 · 0 comments
Closed

Show time spent on code coverage report generation #3586

morozov opened this issue Apr 4, 2019 · 0 comments
Assignees
Labels
type/enhancement A new idea that should be implemented
Milestone

Comments

@morozov
Copy link
Contributor

morozov commented Apr 4, 2019

Q A
PHPUnit version 8.0.2

Depending on the size of the codebase, coverage report generation may take from sub-seconds to tens of minutes. For a test suite with sparse coverage (a lot of code, few tests), or selectively run tests, code coverage generation may take an order of magnitude longer than running the tests.

On a proprietary codebase I'm working on, a test run looks like the following:

-----8<-----

Time: 9.98 seconds, Memory: 140.26 MB

OK, but incomplete, skipped, or risky tests!
Tests: 2482, Assertions: 4214, Skipped: 24.

Generating code coverage report in HTML format ... done

Where it takes about 2 minutes between "Generating" and "done".

It would be nice if it looked like this:

Generating code coverage report in HTML format ... done (102 seconds taken).
@sebastianbergmann sebastianbergmann added the type/enhancement A new idea that should be implemented label Apr 5, 2019
@sebastianbergmann sebastianbergmann added this to the PHPUnit 8.2 milestone Apr 5, 2019
@sebastianbergmann sebastianbergmann changed the title Coverage report generation time is not counted Show time spent on code coverage report generation Apr 8, 2019
@sebastianbergmann sebastianbergmann self-assigned this Apr 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement A new idea that should be implemented
Projects
None yet
Development

No branches or pull requests

2 participants