Browse Source

Now using tox to run tests against multiple versions of Python in one go.

Dan Helfman 10 years ago
parent
commit
5bc7c04cdf
5 changed files with 18 additions and 6 deletions
  1. 1 0
      .hgignore
  2. 3 2
      NEWS
  3. 4 4
      README.md
  4. 2 0
      test_requirements.txt
  5. 8 0
      tox.ini

+ 1 - 0
.hgignore

@@ -2,3 +2,4 @@ syntax: glob
 *.egg-info
 *.pyc
 *.swp
+.tox

+ 3 - 2
NEWS

@@ -1,8 +1,9 @@
 0.0.4-dev
 
+ * Now using tox to run tests against multiple versions of Python in one go.
  * Helpful error message about how to create a repository if one is missing.
- * Added a troubleshooting section with steps to deal with broken pipes.
- * Added nosetests config file (setup.cfg) with defaults.
+ * Troubleshooting section with steps to deal with broken pipes.
+ * Nosetests config file (setup.cfg) with defaults.
 
 0.0.3
 

+ 4 - 4
README.md

@@ -90,13 +90,13 @@ If you'd like to see the available command-line arguments, view the help:
 
 ## Running tests
 
-To install test-specific dependencies, first run:
+First install tox, which is used for setting up testing environments:
 
-    sudo python setup.py test
+    pip install tox
 
-To actually run tests, run:
+Then, to actually run tests, run:
 
-    nosetests
+    tox
 
 
 ## Troubleshooting

+ 2 - 0
test_requirements.txt

@@ -0,0 +1,2 @@
+flexmock==0.9.7
+nose==1.3.4

+ 8 - 0
tox.ini

@@ -0,0 +1,8 @@
+[tox]
+envlist=py27,py34
+skipsdist=True
+
+[testenv]
+usedevelop=True
+deps=-rtest_requirements.txt
+commands = nosetests