Skip to content

Commit

Permalink
#37: describe how to run the python tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergmann committed Jul 24, 2023
1 parent 082e08f commit e89bb96
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,25 @@ Documentation is continually updated at: <https://basico.readthedocs.org/>.

Please use the [issue tracker](https://github.com/copasi/basico/issues) for bug reports and feature requests.

### Run the tests

basico comes with a number of unit tests based on pytest. To run them, change to the
root directory of this project and run:

python3 -m pytest

that will ensure that `basico` is in the python path, and the test run as expected. Some
tests require more data, that is not included in the repository, such as tests for PEtab
and petab select, for those, specify the environment variables to the directories where
the files are for example:

PETAB_BENCHMARK_MODELS=/path/to/petab/benchmark/models
PETAB_SELECT_MODELS=/path/to/petab/select/models

for example:

PETAB_BENCHMARK_MODELS=../Benchmark-Models-PEtab/Benchmark-Models PETAB_SELECT_MODELS=../petab_select/test_cases python3 -m pytest

### Acknowledgements
This project has been possible thanks to the BMBF funded de.NBI initiative (031L0104A):

Expand Down

0 comments on commit e89bb96

Please sign in to comment.