-
Notifications
You must be signed in to change notification settings - Fork 20
Regression testing
Christian Ritter edited this page Jul 27, 2016
·
24 revisions
NuPyCEE adopts the Travis CI technology for regression testing.
The regression_tests directory hosts test functions, either provided in selftest.py or in ipython notebooks.
To add your test notebook copy it into the regression_tests directory and add the following python code:
# Trigger interactive or non-interactive depending on command line argument
__RUNIPY__ = sys.argv[0]
if __RUNIPY__:
%matplotlib inline
else:
%pylab nbagg
Then edit the .travis.yml and add in the script section
runipy regression_tests/yournotebookname.ipynb
That's it!
To add a test function edit the selftest.py and add a test class and test functions.