Skip to content

Commit

Permalink
randomize test order
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasertl committed Aug 30, 2023
1 parent 1d0a51f commit c4b18f6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,8 @@ addopts = [
"--cov=ca/django_ca/",
"--cov-report=html:docs/build/coverage/",
"--cov-fail-under=100",
"--random-order",

]
pythonpath = [
"ca",
Expand Down
2 changes: 2 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@ docker==6.1.3
pip>=21.3

tox>=4.4.6
# pytest-xdist allows running tests in parallel ("pytest -n 3")
pytest-xdist==3.3.1

wheel-inspect
1 change: 1 addition & 0 deletions requirements/requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ pyrfc3339==1.1
pytest-cov==4.1.0
pytest-django==4.5.2
pytest-doctestplus==1.0.0
pytest-random-order==1.1.0
pytest==7.4.0
requests-mock==1.11.0

0 comments on commit c4b18f6

Please sign in to comment.