fmalk/codeigniter-phpunit

Launch only one test

Closed this issue · 1 comments

Hi,
I have more tests in folder models.

If I would like to launch only the test file 09NewsTest.php how can I do that?

Thanks

In CLI, you can do phpunit folder\MyUnitTest and that'll execute just that test.
Using XML configs, you can use the <testsuite><file> tags to pinpoint the file you're interested.
It's really all in https://phpunit.de/manual/current/en/organizing-tests.html#organizing-tests.xml-configuration