From 414ddb0ddd992efc309681b69d83b5a3c61a4f87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Gonz=C3=A1lez=20Duque?= Date: Sat, 19 Jul 2025 21:41:38 +0200 Subject: [PATCH] Adds how to run pytest directly --- CONTRIBUTING.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 189d2921..670acbc2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -63,6 +63,16 @@ There are several different environments (depending on the black boxes we test). If you want to run tests in all environments, remove `-e poli-base-py39` and just run `tox`. This might take a while, and several conda envs will be created. +## Testing each environment manually using `pytest` + +What `tox` does is essentially running certain `pytest` commands after creating relevant `conda` environments. You can usually run these by hand from the relevant environments by doing something like + +```bash +pytest -v -m "unmarked" # for the base env. + +pytest -v -m "poli__" # for whichever environment +``` + ## Bump the version! Your last commit in your branch should be a bump version.