Skip to content

Commit

Permalink
feature/Configure pytest-random execution order (#4)
Browse files Browse the repository at this point in the history
# Added
<!-- New features and interfaces -->
- add `pytest-random` as dev dependency
- activate random pytest order by default

---------

Signed-off-by: Nicolas Drebenstedt <[email protected]>
  • Loading branch information
cutoffthetop authored Feb 23, 2024
1 parent 6067fc5 commit 8a99c5b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- configure dependabot updates for github-actions
- add EOF, WS and BOM githooks
- add A, B, PERF and UP ruff linter rule sets
- add pytest-random as dev dependency
- activate random pytest order by default

### Changes

Expand Down
2 changes: 2 additions & 0 deletions mex-{{ cookiecutter.project_name }}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ ipdb = "^0.13.13"
mypy = "^1.8.0"
pytest = "^8.0.0"
pytest-cov = "^4.1.0"
pytest-random-order = "^1.1.1"
ruff = "^0.2.1"
sphinx = "^7.2.6"

Expand Down Expand Up @@ -48,6 +49,7 @@ addopts = [
"--cov-fail-under=95",
"--cov-branch",
"--pdbcls=IPython.terminal.debugger:TerminalPdb",
"--random-order-bucket=global",
]
markers = "integration: mark a test as integration test"

Expand Down

0 comments on commit 8a99c5b

Please sign in to comment.