Commit 086a36ce by Luke Plant

Added tox.ini and instructions, for easy running of tests in multiple environments

parent 08312fc2
...@@ -90,6 +90,11 @@ Consider any moment in life that you could have been writing **unit tests** for ...@@ -90,6 +90,11 @@ Consider any moment in life that you could have been writing **unit tests** for
The easiest way to add features is to write a plugin. Please create an issue to discuss whether your plugin idea is a core plugin (`wiki.plugins.*`) or external plugin. If there are additions needed to the plugin API, we can discuss that as well! The easiest way to add features is to write a plugin. Please create an issue to discuss whether your plugin idea is a core plugin (`wiki.plugins.*`) or external plugin. If there are additions needed to the plugin API, we can discuss that as well!
To run the tests, run "python runtests.py" after installing the requirements. Better, install "tox" (using "pip install tox") and then just run "tox" to run the test suite on multiple environments.
To run specific tests, call runtests.py with the arguments that you would pass to the normal "manage.py test" command.
Manifesto Manifesto
--------- ---------
......
[tox]
envlist = py27-django14, py27-django15, py27-django16
[testenv]
commands = ./runtests.py
deps =
Markdown==2.3.1
Pillow==2.3.0
South==0.8.4
argparse==1.2.1
django-classy-tags==0.4
django-mptt==0.6.0
django-sekizai==0.7
sorl-thumbnail==11.12
wiki==0.0.23
wsgiref==0.1.2
[testenv:py27-django14]
basepython = python2.7
deps =
Django==1.4.10
{[testenv]deps}
[testenv:py27-django15]
basepython = python2.7
deps =
Django==1.5.5
{[testenv]deps}
[testenv:py27-django16]
basepython = python2.7
deps =
Django==1.6.1
{[testenv]deps}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment