From 8a99c5bda13e8a909b26d195886225f5d278e693 Mon Sep 17 00:00:00 2001 From: Nicolas Drebenstedt Date: Fri, 23 Feb 2024 13:00:09 +0100 Subject: [PATCH] feature/Configure pytest-random execution order (#4) # Added - add `pytest-random` as dev dependency - activate random pytest order by default --------- Signed-off-by: Nicolas Drebenstedt --- CHANGELOG.md | 2 ++ mex-{{ cookiecutter.project_name }}/pyproject.toml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e076d23..a9df936 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/mex-{{ cookiecutter.project_name }}/pyproject.toml b/mex-{{ cookiecutter.project_name }}/pyproject.toml index 72771b6..6ae0b92 100644 --- a/mex-{{ cookiecutter.project_name }}/pyproject.toml +++ b/mex-{{ cookiecutter.project_name }}/pyproject.toml @@ -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" @@ -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"