This folder contains the core tests for Covasim. Recommended usage is ./check_coverage
or ./run_tests
. You can also use pytest
to run all the tests in the folder. Description of other scripts included for convenience are below.
Run all tests with parallelization, determine code coverage, and create an HTML report.
Run integration tests, unit tests, coverage, and build docs.
Run all tests, with parallelization, and showing how long each test took.
The test test_baselines.py
checks to see if results changed unintentionally. If you intended to change them, run this script to update the saved results. It also writes default parameter values to the ../covasim/regression
folder.