running a PyUnit TestSuite
MAK
mike at mmrd.com
Wed Apr 30 10:56:40 EDT 2003
"Achim Domma" <achim.domma at syynx.de> wrote in message news:<b8nrlv$dvn$07$1 at news.t-online.com>...
> I have a TestSuite which depends on the execution order of the tests. If I
> use the 'main' object provided by unittest.py I can not specify the
> execution order
Yep, ran into the same thing right away. Since 'main' runs tests in
the alphabetical-sort order of the function name, I solved the problem
by naming all of my test functions like this...
test_01_sometest
test_02_anothertest
...
...and now they run in the order I want.
More information about the Python-list
mailing list