Skip to content

Comments

Add basic tests#13

Open
Flimm wants to merge 5 commits intohzdg:masterfrom
Flimm:add-tests
Open

Add basic tests#13
Flimm wants to merge 5 commits intohzdg:masterfrom
Flimm:add-tests

Conversation

@Flimm
Copy link
Contributor

@Flimm Flimm commented Dec 22, 2016

This adds a file runtests.py which can be used to run the tests. Right now, it simply imports all the files to check for basic errors, but it could be expanded in future.

tox.ini was added so that you can run tox to run the tests against different Python and Django versions automatically.

.travis.yml was added so that travis-ci.org would run the tests automatically. You can do cool things like add a badge the README too. It's very easy to set up travis-ci.org to do this, I've done it for my fork, and it could be done very easily for hzdg.

Currently the tests fail because of a couple of bugs in the code.

Now just run `tox` to run the tests against different versions of Python
and Django.
For integration with travis-ci.org
This is so that a fully featured terminal is not required merely for an
import, allowing the tests to pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant