GithubHelp home page GithubHelp logo

Comments (6)

sebastianbergmann avatar sebastianbergmann commented on June 8, 2024 1

I do not think that this would be useful, sorry.

from phpunit.

sebastianbergmann avatar sebastianbergmann commented on June 8, 2024

The --coverage-filter CLI option exists for this purpose. Are you saying that it does not work or that you did not know about it? ;-)

from phpunit.

staabm avatar staabm commented on June 8, 2024

I did not know about this option - thank you.

Also I wondern, when I run only a subset of the test-suite (which I do because I pass concret paths to tests to phpunit), whether it could just create coverage for these tests involved, without asking me to repeat a coverage filter (I already told with --coverage-html=coverage that I wan't coverage). might be helpful from a DX point of view.

from phpunit.

sebastianbergmann avatar sebastianbergmann commented on June 8, 2024

whether it could just create coverage for these tests involved, without asking me to repeat a coverage filter

One has nothing to do with the other.

from phpunit.

sebastianbergmann avatar sebastianbergmann commented on June 8, 2024

Closing this as the problem was already solved (--coverage-filter exists).

from phpunit.

staabm avatar staabm commented on June 8, 2024

One has nothing to do with the other.

I totally agree. let me re-phrase the idea from a end-user perspective.

I run vendor/bin/phpunit tests/library/UrlHelperTest.php --coverage-text because I want to run this particular test and want a coverage report which code was executed because of this test.

since UrlHelperTest.php declares CoversClass via metadata, I think PHPUnit "could find" via the metadata which classes it needs to generate coverage for, without me additionally adding a filter...?

from phpunit.

Related Issues (20)

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.