Skip to content

Commit d848a7d

Browse files
committed
Randomize test order each run
[sc-46860]
1 parent acc6498 commit d848a7d

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

compute_endpoint/setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"coverage>=5.2",
5252
"pytest-mock==3.2.0",
5353
"pyfakefs<5.9.2", # 5.9.2 (Jul 30, 2025), breaks us; retry after 6.0.0 lands?
54+
"pytest-random-order",
5455
]
5556

5657

compute_endpoint/tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ extras = test
1010
usedevelop = true
1111
commands =
1212
coverage erase
13-
coverage run -m pytest --durations 5 --log-cli-level=ERROR {posargs}
13+
coverage run -m pytest --random-order --durations 5 --log-cli-level=ERROR {posargs}
1414
coverage report
1515

1616
[testenv:mypy]

compute_sdk/setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"flake8==3.8.0",
3737
"pytest>=7.2",
3838
"pytest-mock",
39+
"pytest-random-order",
3940
"pyfakefs",
4041
"coverage",
4142
# easy mocking of the `requests` library

compute_sdk/tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ usedevelop = true
99
extras = test
1010
commands =
1111
coverage erase
12-
coverage run -m pytest --durations 5 {posargs}
12+
coverage run -m pytest --durations 5 --random-order {posargs}
1313
coverage report --skip-covered
1414

1515
[testenv:mypy]

0 commit comments

Comments
 (0)