Commits

Gora Khargosh committed 6653728

Use py.test to run tests in parallel.

Signed-off-by: Gora Khargosh <gora.khargosh@gmail.com>

Comments (0)

Files changed (1)

 [tox]
 envlist = py25,py26,py27,py32,pypy
 
+[pytest]
+addopts = -n4 --cov mom --cov-report term-missing --doctest-modules
+
 [testenv]
 #commands=coverage erase
 #         coverage run run_tests.py
 #         coverage report -m
 #         #coverage html -d htmlcov
-commands=coverage run run_tests.py
+#commands=coverage run py.test
+commands=py.test []
 
 [testenv:py25]
 deps=pyasn1 >=0.0.13
      PyCrypto >=2.3
      coverage >=3.5
      unittest2
+     PyTest
+     pytest-xdist
+     pytest-cov
 
 [testenv:py26]
 deps=pyasn1 >=0.0.13
      PyCrypto >=2.3
      coverage >=3.5
      unittest2
+     PyTest
+     pytest-xdist
+     pytest-cov
 
 [testenv:py27]
 deps=pyasn1 >=0.0.13
      PyCrypto >=2.3
      coverage >=3.5
      unittest2
+     PyTest
+     pytest-xdist
+     pytest-cov
 
 [testenv:py32]
 deps=coverage >= 3.5
      unittest2py3k
+     PyTest
+     pytest-xdist
+     pytest-cov
 
 [testenv:pypy]
 deps=pyasn1 >=0.0.13
      coverage >= 3.5
      unittest2
-
+     PyTest
+     pytest-xdist
+     pytest-cov