There was an error while loading. Please reload this page.
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]
# Trigger interactive or non-interactive depending on command line argument
__RUNIPY__ = sys.argv[0]
if __RUNIPY__: %matplotlib inline else: %pylab nbagg
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.