Workarounds For Phpunit's Incorrect File Sorting? -
anyone know of workaround phpunit's illogical file sorting? i've got tests in subfolder names "addmin001.php", "...002.php", etc. , phpunit insists on running 002, 003, 004, 001.
my attempts use phpunit.xml produce: "uncaught exception 'phpunit_framework_exception' message 'could not load "[redacted]phpunit.xml".' in /usr/share/php/phpunit/util/xml.php:212".
creating alltests.php classes seems lot of work , maintenance, if necessary i'll go route.
phpunit not sort tests @ all, run in whatever order filesystem returning them. creation date, else, depends on filesystem (and os) in use. in case, can not rely on order, because factors outside tests can change it.
there few tricks, use - example test dependencies.
Comments
Post a Comment