Add support for execution order
#170
This patch adds support for the execution order of cases. Users can define a non-negative ORDER value to determine the execution order of cases. Cases with a smaller ORDER value will be executed first.
Add following macros:
- UTEST_ORDER(SET, NAME, ORDER)
- UTEST_F_ORDER(FIXTURE, NAME, ORDER)
- UTEST_I_ORDER(FIXTURE, NAME, INDEX, ORDER)
Just to check - if we just always sorted the tests by name, would that be sufficient rather than this?
Do you want something like a default execution order? I'd prefer the order to be determined by the definition sequence of macros rather than names.
Naw naw the patch is fine, just wanted to double check that wouldn't work for you first before approving :)
Oh, I'm not sure why the CI failed. It seems unrelated to the new code.
Looks like CI passed! I changed the code so that the default behavior should not change :)