- oeqa: test cases at the end of the test suite
Re: oeqa: test cases at the end of the test suite
toggle quoted messageShow quoted text
I'd say improving the actual test ordering function is the way to go, yes. Not sure how the ordering 'hint' should be like, but maybe setting an integer priority via a decorator would work:
@OETestPriority(1) ---> runs first, no guarantees about relative order of other tests with priority 1.
@OETestPriority(99) ---> runs last, ditto.
Default priority: 50 or similar.
On Mon, 4 Jan 2021 at 11:51, Konrad Weihmann <kweihmann@...
I have a few oeqa test cases, which always should run last in a test
suite (log and file collectors for instance).
Due to the ordering of the test case discovery I had to name all those
tests like "zzz_<name>" to move them to the end of the computed list.
Unfortunately this is very error prone, as the OETestDepends tag does
have major influence on the ordering (just a single misplaced tag in any
test case can make it past those "zzz" cases).
Also it makes things hard to read IMO.
That brings me to my question, is there any way to ensure that test
cases are run at the end of the complete list of test suites?
If not does anyone have an idea how to create such a feature (maybe a
new decorator or something like that)?
Join firstname.lastname@example.org to automatically receive all group messages.