Comments (2)
Yes please. The current state of code coverage with peridot is this:
- this package requires the usage of
phpdbg
- this package doesn't actually generate any coverage itself
phpdbg
is not available as a homebrew package (at least not in core + php sources)- conclusion: this is not usable by most php developers
All I want is a peridot plugin I can install and enable to get code coverage, like PHPUnit has been doing for ages.
Refs #12
from peridot-code-coverage-reporters.
@shadowhand I hear your frustration, and I know this package, and particularly the docs, are not perfect. But to be fair:
- This package doesn't require
phpdbg
, it simply uses sebastianbergmann/php-code-coverage, which can use eitherphpdbg
orxdebug
. - It doesn't generate coverage, but it does handle the required glue to add information such as which tests cover which lines to the HTML coverage report generated by sebastianbergmann/php-code-coverage.
phpdbg
can be installed via brew using the--with-phpdbg
flag when installing PHP. See my dotfiles for an example. It's slow because it requires compilation, but it works fine.- There's not a lot of difference here to how PHPUnit coverage works. As far as I know, you need either
phpdbg
orxdebug
to generate coverage there too. It is the same coverage library after all.
I think this particular GitHub issue was more about the fact that you couldn't (at the time), run coverage and see dot/spec output at the same time. This has since been addressed by adding support for multiple reporters.
from peridot-code-coverage-reporters.
Related Issues (8)
- Update peridot dependency to a stable version.
- README HOT 1
- More specific namespace HOT 2
- Use code coverage HOT 4
- clover-code-coverage reporter doesn't output to a file like html-code-coverage HOT 2
- Uncaught Error: Class 'Peridot\Reporter\CodeCoverageReporters' not found HOT 5
- removeDirectoryFromWhitelist
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from peridot-code-coverage-reporters.