On Sat, Jun 18, 2011 at 12:10 PM, Christophe COEVOET <s...@notk.org> wrote:
> Le 18/06/2011 17:55, umpirsky a écrit :
>
> Is there a way to run just one desired test case instead always
> running all of them which takes long time to execute? I can do that by
> writting my own xml config, but maybe there is some command, option?
>
> phpunit some/path/ will run only the test cases in this path
>


You can also use:

    phpunit --filter SomePartOfTestName

I find that's usually faster when I know the test name, but don't want
to figure out the whole path to get there.

Alternatively, you can add test group annotations (@group foo) to your
test cases or methods. This lets you run or exclude certain tests:

    phpunit --group functional
    phpunit --exclude-group slow

We have several of our tests grouped as 'crashy' or 'slow', so we can
easily skip the whole bunch.

-- justin

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to symfony-devs@googlegroups.com
To unsubscribe from this group, send email to
symfony-devs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to