-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Various interactive function fixes #258
base: master
Are you sure you want to change the base?
Conversation
Shorten test suite time
…uring _filename_from_resource but can't use non-staticmethod methods on an uninstantiated class
…otting features to be documented as ipython notebooks and added to the tutorial
Add requirement for non-plotting examples to be documented as ipython notebooks
Supplemental data
* origin/master: (77 commits) Add finished supplementaldata ipynb Add option and test for user-specified flotilla directory fix pep8 Get supplemental resource name, not name of supplemental fix resource --> supplemental in reading all supplemental data actually iterate over the items of name_to_df Clarify where example plots should go, add requirement for new non-plotting features to be documented as ipython notebooks and added to the tutorial initial addition of ipynb for supplementaldata move _is_absolute_path to not a method of Study because it's needed during _filename_from_resource but can't use non-staticmethod methods on an uninstantiated class Add test for embarking on a datapackage with supplemental data Add supplemental data to reading/loading of the datapackage Add newline to sys.stdout message pep8 fixes add release notes Add release notes lint fixes pep8 fixes (hopefully will fix failing tests) initial tests of supplemental seem to work remove "_fixed", "_no_na" fixtures initial commit of supplemental data ...
Sorry, I didn't see your note until just now. With IPython, we test interactive things with a casperjs-based test suite that tests the whole chain (sets up a notebook server, runs javascript, and then tests the results of the user actions in the browser). It's messy, but it works and gives us end-to-end tests. |
Jason, thanks for the response! I know you're busy. I'll have to take a On Thu, Mar 26, 2015 at 8:24 AM Jason Grout [email protected]
|
No, I don't have any favorite examples in the ipython js test suite. They're all complicated and not very intuitive :). But you can look here for some examples: https://github.com/ipython/ipython/tree/master/IPython/html/tests/widgets |
Check for code coverage. To run code coverage on only the file you changed,
for example
flotilla/compute/splicing.py
, use this command:py.test --cov flotilla/compute/splicing.py --cov-report term-missing flotilla/test/compute/test_splicing.py
which will show you which lines aren't covered by the tests.
numpydoc
style docstrings?
make pep8
andmake lint
output