mardi 30 décembre 2014

How to skip first N tests in PHPUnit?

The scenario: run a huge batch of tests with PHPUnit and some test (say 537 of 1544) fails after many minutes. The change is small and unlikely to effect the previous tests, I'd like to be able to skip the first 536 tests doing something like this to "pick up where I left off":



phpunit --skip=536


Of course I will run all tests eventually, but right now, I don't want to have to wait many minutes to get back to the broken test(s). I know I can run a single suite but that is tedious/unhelpful if several dozen suites remain to be tested.


Is there a way? Or something even close?


Aucun commentaire:

Enregistrer un commentaire