Tests: Randomize tests

We've had broken unit tests for a long time, and we don't realize
because they are always being executed in the same order, and when they
start failing it's harder to understand WHY it is happening.

This patch forces all our unit tests runs to execute tests in a
randomized order to ensure we find bad tests faster.

Change-Id: I1d3107652b6bb9c9f83a54e307165aaa41f100fb
This commit is contained in:
Gorka Eguileor 2022-08-23 19:00:59 +02:00
parent 138a22cb88
commit 31cce0257a

View File

@ -31,7 +31,7 @@ deps =
# the concurrency=<n> option.
# call ie: 'tox -epy27 -- --concurrency=4'
commands =
stestr run {posargs}
stestr run --random {posargs}
stestr slowest
allowlist_externals =