Coder Social home page Coder Social logo

Comments (2)

shadowhand avatar shadowhand commented on August 12, 2024

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.

ezzatron avatar ezzatron commented on August 12, 2024

@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 either phpdbg or xdebug.
  • 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 or xdebug 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.