Search code examples
symfonynetbeans-7functional-testingautomated-tests

Symfony2 - Execution order of test cases


I'm using Symfony Functional Tests in NETBEANS. Is it possible to define the order in which order will the test cases be executed?

For example: I have "UserTestCase" case for testing registration of users, changing their profiles etc, and "ForumTestCase" for testing creation of forum posts etc. I want to run UserTestCase before ForumTestCase. Now the order is according to file names (F.. before U..)


Solution

  • I'm using Netbeans for the development and I was wondering for a long time, why this didn't work for me.

    Then I found out, that Netbeans simply ignores folder definitions and the order of execution defined in phpunit.xml

    See here: https://netbeans.org/bugzilla/show_bug.cgi?id=199072