Reputation: 222
I can run one file only by phpunit --filter=Test1
But I want to run two files . How can I achieve . I tried like..
phpunit --filter=Test1,Test2
but no executed test only
phpunit --filter=Test1, --filter=Test2
but Test2 execute only
Upvotes: 5
Views: 2027
Reputation: 586
You should use regular expressions. For example
phpunit --filter 'Test1|Test2'
You can use offical documentation https://phpunit.readthedocs.io/en/stable/textui.html#command-line-options
Upvotes: 7