DiODeProject / MuMoT

Multiscale Modelling Tool - mathematical modelling without the maths
https://mumot.readthedocs.io/
GNU General Public License v3.0
21 stars 4 forks source link

Do not suppress tracebacks when running 'test' notebooks via nbval #384

Open willfurnass opened 4 years ago

willfurnass commented 4 years ago

At present tracebacks are suppressed via the logic in init.py. This is annoying when pytest fails.

A possible solution: if there is an active IPython session then only suppress tracebacks if an env var is defined and set to 1. This env var could then be set to 1 in tox.ini

jarmarshall commented 4 years ago

I think this is setVerbose()? Add this to test notebooks if it's not there already?

willfurnass commented 4 years ago

It's the user manual Notebook that this would be most useful for as it's the first Notebook to be run by tox but I presume you don't want setVerbose(True) added to that Notebook.

jarmarshall commented 4 years ago

OK - maybe run it last? It's good to test the user manual of course, but most of the functionality should have been tested if the other notebooks complete...