seamuswc's avatar

PhpUnit, How to dictate which test file to test

vendor/bin/php currently tests: 'tests/Unit/ExampleTest.php

How to I specify when I want to test: 'tests/Feature/ExampleTest.php

Or other test file names within the tests folder.

Thanks

0 likes
1 reply
lostdreamer_nl's avatar

simply run like this:

phpunit tests/Feature/ExampleTest
phpunit tests/Unit/ExampleTest

// or by (partial) className
phpunit --filter ExampleTest
1 like

Please or to participate in this conversation.