Skip to content
Browse files

add tox.ini for testing

  • Loading branch information...
1 parent 73bab02 commit de071007f487e2c9e0d9f2ad760dd3c56772a819 @mcdonc mcdonc committed Feb 22, 2011
Showing with 48 additions and 0 deletions.
  1. +4 −0 .gitignore
  2. +5 −0 CHANGES.txt
  3. +39 −0 tox.ini
View
4 .gitignore
@@ -4,3 +4,7 @@ env26/
*.pyc
.coverage
dist/
+.tox/
+nosetests.xml
+pyramid_zcml/coverage.xml
+
View
5 CHANGES.txt
@@ -1,3 +1,8 @@
+Next release
+------------
+
+- Add tox.ini for testing.
+
0.2 (2011-02-22)
-----------------
View
39 tox.ini
@@ -0,0 +1,39 @@
+[tox]
+envlist =
+ py24,py25,py26,py27,jython,pypy,cover
+
+[testenv]
+commands =
+ python setup.py test -q
+# if we ever want to run the paster template tests, we could also use:
+# python template_tests.py
+# they take forever, though
+deps =
+ Sphinx
+ WebTest
+ repoze.sphinx.autointerface
+ virtualenv
+
+[testenv:jython]
+commands =
+ jython setup.py test -q
+
+[testenv:cover]
+basepython =
+ python2.6
+commands =
+ python setup.py nosetests --with-xunit --with-xcoverage
+deps =
+ Sphinx
+ WebTest
+ repoze.sphinx.autointerface
+ virtualenv
+ nose
+ coverage<3.4
+ nosexcover
+
+# 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.
+

0 comments on commit de07100

Please sign in to comment.
Something went wrong with that request. Please try again.