os-autoinst-distri-opensuse
os-autoinst-distri-opensuse copied to clipboard
Run unit test shuffled and timed
Add two additional commands in the unit-test target:
- run the test with --shuffle argument: it randomly change the execution order. Comparing the result with the previous in-order execution can spot test dependency issues.
- run test with --timer, parse and order the result to print the test in order of time to run. In can help to spot tests taking too much time as maybe using not "mocked" sleep.
- Verification run: https://github.com/os-autoinst/os-autoinst-distri-opensuse/actions/runs/11272220692/job/31346686699?pr=20374#step:6:306