Permalink
Browse files

add a tox.ini for testing

  • Loading branch information...
1 parent ee95e49 commit a758ab95ebdacc9fdae6e17ddc3e64123838a1aa @mcdonc mcdonc committed Sep 29, 2011
Showing with 41 additions and 7 deletions.
  1. +2 −7 .gitignore
  2. +39 −0 tox.ini
View
@@ -7,16 +7,11 @@
*~
.coverage
tutorial.db
-env26/
-env26-debug/
bookenv/
-env24/
-env25/
-env27/
-jyenv/
-pypyenv/
+env*/
build/
dist/
.idea/
.tox/
nosetests.xml
+pyramid/coverage.xml
View
39 tox.ini
@@ -0,0 +1,39 @@
+[tox]
+envlist =
+ py24,py25,py26,py27,cover
+
+[testenv]
+commands =
+ python setup.py test -q
+deps =
+ Sphinx
+ docutils<0.8
+ repoze.sphinx.autointerface
+ virtualenv
+ PasteDeploy<1.5
+ Chameleon<1.4
+ WebOb<=1.0.99
+ WebTest<=1.2.99
+
+[testenv:cover]
+basepython =
+ python2.6
+commands =
+ python setup.py nosetests --with-xunit --with-xcoverage
+deps =
+ Sphinx
+ docutils<0.8
+ repoze.sphinx.autointerface
+ virtualenv
+ PasteDeploy<1.5
+ Chameleon<1.4
+ WebOb<=1.0.99
+ WebTest<=1.2.99
+ 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.
+

0 comments on commit a758ab9

Please sign in to comment.