DiODeProject / DiODeProject/MuMoT

Use nbval to perform regression testing on MuMoTtest.ipynb

Open
#187 0 comments 0 reactions 0 assignees View on GitHub
enhancement testing
Dominant language
Python
Stars
24
Forks
5
PR merge metrics
No merged PRs in 30d

Description

There is already a commented-out command in `tox.ini` for this:
```sh
# Ensure the user manual and regression test Notebooks do not show regressions (do not enable yet)
#pytest --nbval --nbdime TestNotebooks/MuMoTtest.ipynb
```

nbval includes some functionality for selectively comparing saved and computed output for cells (see [the nbval docs for more info](http://nbviewer.jupyter.org/github/computationalmodelling/nbval/blob/master/docs/source/index.ipynb)) but this may or may not be sufficient for performing meaningful regression testing on `MuMoTtest.ipynb` given that:

1. a large proportion of the outputs in `MuMoTtest.ipynb` are graphical
2. nbval does not run Notebooks in a browser so anything requiring Javascript (e.g. ipywidgets) won't work.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.