Skip to content

Conversation

@jeremyharris
Copy link
Member

phpdbg is generally faster at generating coverage

Is this too opinionated? I mean, it is faster, but perhaps not in all cases.

Here's my app's performance, for example (had to reinstall xdebug, forgot how fast phpdbg actually was 😄 ):

screen shot 2017-05-26 at 8 24 27 am

should be able to view the results by going to
``http://localhost/your_app/coverage``.

If you are using PHP 5.6.0 or greater, you can use `phpdbg <http://phpunit.de/manual/current/en/installation.html#installation.phar.windows>`__
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you link to #installation.phar.windows?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copy paste fail :(

``http://localhost/your_app/coverage``.

If you are using PHP 5.6.0 or greater, you can use `phpdbg <http://phpunit.de/manual/current/en/installation.html#installation.phar.windows>`__
to generate coverage instead of xdebug. ``phpdbg`` is generally faster at
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That it is "generally faster" is probably true. Simply because it has less functionality. Some of Xdebugs functionality makes it way slower. Some of it could be disabled, though.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question is: Is that really relevant (as part of the CookBook)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whether it's relevant or not is totally up for debate. I hesitate to put it here as it's an additional tool and isn't cakephp related. However, there is other non-cakephp information (like this section in the first place) so I thought it might be helpful.

@ravage84 ravage84 added this to the 3.x milestone May 26, 2017
@jeremyharris
Copy link
Member Author

After putting this together and thinking about it more I tend to agree with @ravage84 that this isn't relevant to the cookbook. Perhaps the entire "generating coverage" section should be done away with as if they use phpunit, they know they can generate coverage.

(Perhaps this was leftover from the simpletest days where you went through a cake shell to do everything?)

@markstory markstory merged commit b0e4d4c into cakephp:3.0 May 26, 2017
@markstory
Copy link
Member

Merging as having simple tasks like generating coverage in our docs makes our user's lives easier as they don't have to hunt through phpunit's docs too.

@jeremyharris jeremyharris deleted the patch-2 branch May 26, 2017 17:39
okinaka added a commit to okinaka/docs that referenced this pull request May 27, 2017
@okinaka okinaka mentioned this pull request May 27, 2017
HavokInspiration added a commit that referenced this pull request Jun 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants