-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--no-coverage option to ovewrite config file #920
Comments
Unfortunately, this is not something PHPUnit currently supports and @sebastianbergmann has stated previously that he's not interested in adding new arguments/options. The easiest solution is to maintain a separate configuration file without logging enabled and switch between the two with the Another option is to disable Xdebug on your system. Tools like phpbrew make enabling/disabling extensions on the fly very simple. Alternatively, you should be able to roll your own solution without too much effort. |
Are you sure? I was considering making a PR for this. |
Yeah, not unless @sebastianbergmann has changed his mind. See #516. |
+1 If command line options are intended to override configuration file settings, then it follows that there should be a way to override in both directions. (XML turns a feature on, command line overrides to turn it off.) Since there isn't a way to merge settings from multiple configuration files (to allow for shared base options), maintaining multiple configuration files for each collection of settings isn't DRY. |
Once the |
The default configuration for all my projects is set to generate html code coverage reports.
Is there anyway I can run the phpunit command at a given time and not generate the code coverage reports without having to change the config file?
This would be something like a
--no-coverage option
.The text was updated successfully, but these errors were encountered: