Skip to content

Commit 33d4ba3

Browse files
authored
Merge pull request #316 from MachineLearningLifeScience/docs/pytest-commands-in-contr
Adds how to run pytest directly
2 parents e2d0876 + 414ddb0 commit 33d4ba3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

CONTRIBUTING.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,16 @@ There are several different environments (depending on the black boxes we test).
6363

6464
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.
6565

66+
## Testing each environment manually using `pytest`
67+
68+
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
69+
70+
```bash
71+
pytest -v -m "unmarked" # for the base env.
72+
73+
pytest -v -m "poli__<relevant-env>" # for whichever environment
74+
```
75+
6676
## Bump the version!
6777

6878
Your last commit in your branch should be a bump version.

0 commit comments

Comments
 (0)