symfony - Symfony2 - Execution order of test cases -


i'm using symfony functional tests in netbeans. possible define order in order test cases executed?

for example: have "usertestcase" case testing registration of users, changing profiles etc, , "forumtestcase" testing creation of forum posts etc. want run usertestcase before forumtestcase. order according file names (f.. before u..)

you need define order of tests in phpunit.xml described in docs

example:

<phpunit>   <testsuites>     <testsuite name="object_freezer">       <file>tests/freezer/hashgenerator/nonrecursivesha1test.php</file>       <file>tests/freezer/idgenerator/uuidtest.php</file>       <file>tests/freezer/utiltest.php</file>       <file>tests/freezertest.php</file>       <file>tests/freezer/storagetest.php</file>       <file>tests/freezer/storage/couchdb/withlazyloadtest.php</file>       <file>tests/freezer/storage/couchdb/withoutlazyloadtest.php</file>     </testsuite>   </testsuites> </phpunit> 

Comments

Popular posts from this blog

javascript - Unusual behaviour when drawing lots of images onto a large canvas -

how can i manage url using .htaccess in php? -

javascript - Chart.js - setting tooltip z-index -