tags:

views:

35

answers:

2

how can i choose a specific testsuite to be executed?

$ phpunit --configuration config.xml

config.xml:

<testsuites>
    <testsuite name="Library">
        <directory>library</directory>
    </testsuite>
    <testsuite name="XXX_Form">
        <file>library/XXX/FormTest.php</file>
        <directory>library/XXX/Form</directory>
    </testsuite>
</testsuites>
A: 

it is NOT possible just to simply run a specific testsuite! -.-

zolex
A: 

This is not possible in current versions of PHPUnit as evidenced by these messages in phpunit-user mailing list: http://thread.gmane.org/gmane.comp.php.phpunit.user/1302

But there is an alternative, you can simply pass a path to phpunit.

phpunit library/XXX

This would run all the tests in library/XXX directory

If this is not sufficient for you, another option is to use the @group annotation to divide tests into different categories that could then be run selectively.

Anti Veeranna
well, as you can see in my posting, this is not exactly what i need
zolex
Then there is nothing you can do, as pointed out in the first link of my answer.
Anti Veeranna