Skip to content
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

Test python scripts #53

Open
3 tasks
travs opened this issue Aug 23, 2015 · 4 comments
Open
3 tasks

Test python scripts #53

travs opened this issue Aug 23, 2015 · 4 comments

Comments

@travs
Copy link

travs commented Aug 23, 2015

Some scripts in this directory can be tested using a framework like pytest.

A rudimentary example would be to run RegenerateConnectome and look for a 0 exit code (i.e. the script exited successfully).

Higher value tests can compare the outputs of these modules to an expected output, or run specific functions defined in them. This will vary depending on the actual script in question.

For now, let's enumerate some modules, and possible tests that could provide a benefit:

@pgleeson
Copy link
Member

Have added more Python scripts that can be tested. See also note here: https://github.com/openworm/CElegansNeuroML/blob/master/CElegans/pythonScripts/README.md

@slarson
Copy link
Member

slarson commented Apr 11, 2016

@brijeshmodi12 have a look at this as well.

@pgleeson
Copy link
Member

These are all currently tested in the .travis.yml.

brijeshmodi12 added a commit to brijeshmodi12/CElegansNeuroML that referenced this issue Jun 3, 2016
@brijeshmodi12
Copy link
Contributor

Pytest added:
All 3 files: RegenerateConnectome.py, SpreadsheetDataReader.py, OpenWormReader.py are now being tested via py.test.

Test passed successfully on Travis
https://travis-ci.org/brijeshmodi12/CElegansNeuroML/jobs/135151497#L1717

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants