The code is based on some gist (see the code) and I tried to quickly patch something, so the code needs some cleanup, but you might get the idea. If there is interest in this I will make this more useable with seom commandline options to be used in travis.
Hi,
I have added a python module that can run ipython notebooks in travis and make some rather nice output. The code is found here: https://github.com/jhprinz/msm-tis/blob/ipythontesting/examples/ipython/ipnbdoctest.py The main features are:
conda install ipython
andconda install ipython-notebook
where I think the latter is dependent on the firstFinally Cell can terminate with
ok
: passed and the outputs are identicalDIFF
: passed but the output is different (treated as okay)TIME
: timeout occurred (right now 9min < 10min of travis, also treated as okay)FAIL
: cell could be executed in ipython but python reported an errorERROR
: cell could not even be executed (e.g. Timeout or kernal failure)if
FAIL
orERROR
occure the test exits with an errorWe can also put code folds into .travis.yml scripts simply using
although name MUST be unique in the whole output!
The code is based on some gist (see the code) and I tried to quickly patch something, so the code needs some cleanup, but you might get the idea. If there is interest in this I will make this more useable with seom commandline options to be used in travis.