Closed fabiansinz closed 8 years ago
I can't get coveralls to work at the moment. Maybe someone else can try. At least the tests are working. The test-coverage is, of course, shamefully low.
grml ...
travis says:
Traceback (most recent call last):
File "setup.py", line 5, in
Forgot to import the function. Next is on the way.
Yes, coveralls works again!
Yes! Coveralls works. Happy test writing. @jfsehuanes @tillraab if you want to try the tests locally, just copy the command from the .travis.yml
(once the pull request is accepted).
nosetests -vv --with-coverage --cover-package=thunderfish
Thank you @fabiansinz for your well known enthusiasm and efficiency. I however feel a little uncomfortable merging this pull request, since I really do not understand most of the stuff. I know what a test is meant to do (remember Fabian lecturing me on this) but I really do not know how exactly it works. Maybe @jgrewe should merge this pull-request?
Just to be complete here. Basic testing is quite easy now:
tests/
contains modules called test_something.py
which contain functions called test_somefeature
(the test_
prefix is important).nosetests -vv --with-coverage tests/
in the shellI think the goal should be to reach at least 80% test coverage. Especially when restructuring the code it is very convenient because you can make sure that everything still runs as supposed after making changes.
nice!