summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorGraham Higgins <gjh@bel-epa.com>2011-09-20 17:40:33 +0100
committerGraham Higgins <gjh@bel-epa.com>2011-09-20 17:40:33 +0100
commite467ea9ac33e92733351424755064aa68243e4fe (patch)
tree179fa40a710d40f362d5fa994dc53cf7ed39e615 /tox.ini
parent6897ab51bad20076b87cb5e203f06fb5eb8a3ce7 (diff)
downloadrdflib-e467ea9ac33e92733351424755064aa68243e4fe.tar.gz
Added tox.ini file to enable testing with multiple versions.
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini32
1 files changed, 32 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
new file mode 100644
index 00000000..ed51a849
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,32 @@
+[tox]
+envlist =
+ py26,py27,cover#,pypy,jython,
+
+[testenv]
+commands =
+ nosetests -q --where=./ --with-xunit \
+ --with-doctest --doctest-extension=.doctest --doctest-tests
+deps =
+ nose
+
+[testenv:jython]
+commands =
+ jython run_tests.py
+
+[testenv:cover]
+basepython =
+ python2.7
+commands =
+ nosetests -q --where=./ \
+ --with-doctest --doctest-extension=.doctest --doctest-tests \
+ --with-coverage --cover-html --cover-html-dir=./coverage \
+ --cover-package=rdflib --cover-inclusive
+deps =
+ nose
+ coverage
+
+# we separate coverage into its own testenv because a) "last run wins" wrt
+# cobertura jenkins reporting and b) pypy and jython can't handle any
+# combination of versions of coverage and nosexcover that i can find.
+# coverage <3.4 is required by nosexcover 1.0.4.
+