test: make our tests reproducible

by seeding random generators in python random or in numpy random
closes #546
This commit is contained in:
Benoit Chevallier-Mames
2021-10-13 11:03:14 +02:00
committed by Benoit Chevallier
parent a4da3b8210
commit 17704da169
3 changed files with 65 additions and 67 deletions

View File

@@ -76,10 +76,13 @@ PCC_DEPS += check_version_coherence
pcc_internal: $(PCC_DEPS)
.PHONY: pcc_internal
# One can reproduce pytest thanks to the --randomly-seed which is given by
# pytest-randomly
pytest:
poetry run pytest -svv \
--global-coverage-infos-json=global-coverage-infos.json \
--cov=$(SRC_DIR) --cov-fail-under=100 \
--randomly-dont-reorganize \
--cov-report=term-missing:skip-covered tests/
.PHONY: pytest