joshspeagle / dynesty

Dynamic Nested Sampling package for computing Bayesian posteriors and evidences
https://dynesty.readthedocs.io/
MIT License
347 stars 76 forks source link

Update random seed functionality in tests (again) #252

Closed segasai closed 3 years ago

segasai commented 3 years ago

I've restructured the seed settings in the tests, so now it's centralized in conftest.py also now it's possible to run tests with multiple seed values if needed I.e.

for a in `seq 10 ` ; do 
 env DYNESTY_TEST_RANDOMSEED=$a PYTHONPATH=py:tests:$PYTHONPATH pytest  --full-trace   tests/test_printing.py  ;
 done 

This can be useful to catch rare/sporadic errors. While the main tests will still use one single seed.

coveralls commented 3 years ago

Pull Request Test Coverage Report for Build 856767376


Totals Coverage Status
Change from base Build 855437781: 0.04%
Covered Lines: 3379
Relevant Lines: 4695

💛 - Coveralls