Yelp / Testify

A more pythonic testing framework.
Other
306 stars 67 forks source link

Annotated UnitTests run first in a particular TestCase #244

Closed rambleraptor closed 10 years ago

rambleraptor commented 10 years ago

For any given TestCase, the unittests annotated with the @suite('unittest') decorator will be run before the other tests in that TestCase. One step closer to all unittests being run before all non-unittests!

Note: The plugins are under the unittest_annotation2.py name. I named it differently from INFRA-1346 pull request to avoid any merge conflicts. Eventually, they will be moved to one file.

bukzor commented 10 years ago

The ordering of tests within a case is very much less important than the ordering of test cases relative to each other.

Given the very small gains, I'm not sure this should be merged. I assume the necessary change for inter-testcase ordering will look quite different.

rambleraptor commented 10 years ago

I completely agree with that. This was just a very quick stopgap that I devised.