mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 03:55:04 -05:00
test: make our tests reproducible
by seeding random generators in python random or in numpy random closes #546
This commit is contained in:
committed by
Benoit Chevallier
parent
a4da3b8210
commit
17704da169
3
Makefile
3
Makefile
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user