fmalk / codeigniter-phpunit

Hack to make CodeIgniter work with PHPUnit.
234 stars 61 forks source link

Launch only one test #27

Closed AlessandroMinoccheri closed 9 years ago

AlessandroMinoccheri commented 9 years ago

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

fmalk commented 9 years ago

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