I don't want to run all the tests sometimes to save time. I know I can comment the tests. But this method isn't elegant. I'm wondering whether there is some simple way to do that.
All advice is appreciated.
Thanks for your time and best regards, Box He
phpunit
command line test runner has --filter
argument which is a regular expression to match the executed test case names.
Suppose, you need to exclude all the test cases, names of which contain "Foo". Then, use:
--filter /^(?:(?!Foo).)*$/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With