Comments (6)
I do not think that this would be useful, sorry.
from phpunit.
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.
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.
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.
Closing this as the problem was already solved (--coverage-filter
exists).
from phpunit.
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)
- [DX] Massive deprecations when upgrading to 10.5.18 and 10.5.20 HOT 4
- Arbitrary annotations attached to test cases. HOT 2
- advice on installing phpunit HOT 1
- Unknown option "--ansi" HOT 1
- Allow attributes for code coverage targeting to also be used on the test method level (instead of only on the test class level) HOT 4
- Allow enabling process isolation on suite/test base class HOT 1
- Include deprecation/warning failures in JUnit logs
- Multiple dataProviders testCases with same key (name) are not detected HOT 1
- Allow selected deprecations to be skipped/ignored HOT 1
- Run garbage collector on AfterLastTestMethodFinished HOT 2
- Fatal with some error/exception handlers HOT 3
- Issue5592Test fails when registering an error handler in an auto_prepend_file
- assertEquals() hides contents of long strings
- Suppressed deprecations not included in baseline when ignoreSuppressionOfDeprecations is true HOT 1
- parameter names $expected, $actual don't make sense for assertLessThan() & friends
- Missing extensions in php 8.2: `ctype` and `tokenizer` HOT 2
- Various output buffer issues HOT 4
- Github template comment deprecated php.ini directive log_errors_max_len HOT 1
- PHP-Scoper 0.18.12 breaks PHAR for PHPUnit 8.5 on PHP 7.2 HOT 8
- Smarter defaults for the display of warnings, notices & co
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 phpunit.