Is it possible to determine the execution order of GHUnit test methods?

381 views Asked by At

This must sound like a severe case of the GIYF-itis, but I can't find anything useful out there.

It looks like test methods in GHUnit are executed in alphabetical order. I am all for it that every test case/class should be testable on its own, but I do want to be able to test a certain sequence without ruining semantics by naming them testA, testB etc.

Is there a way to do this with GHUnit? Cheers.

1

There are 1 answers

0
epologee On BEST ANSWER

Apparently, there is not. If you want to sort your test method calls, just use a different naming scheme for your test methods, like test_01_zOperation and test_02_aOperation.