|
From: Robert H. <tr...@tr...> - 2008-08-08 21:48:25
|
i'm using as3 (on os-x 10.5.4 with flex 3.0.0). i can't get my tests to execute in a well defined order. i've added a sort operation to the asunit code i use to force tests to execute in alphabetic order. the patch is appended to this message. i have a few questions: - is there a right and proper way to stipulate test order in asunit? - if not, is my solution a reasonable one? - if so, how would do i submit a patch to asunit? :) -trebor --- https://asunit.svn.sourceforge.net/svnroot/asunit/trunk/framework/as3/asunit/framework/TestCase.as --- Index: TestCase.as =================================================================== --- TestCase.as (revision 203) +++ TestCase.as (working copy) @@ -151,6 +151,9 @@ name = item.toString(); testMethods.push(name); } + // alpha sort the test methods by name to + // stabilize the test execution order + testMethods.sort(); } public function getTestMethods():Array { |