diff --git a/.travis.yml b/.travis.yml index 568d6689..eb98b714 100644 --- a/.travis.yml +++ b/.travis.yml @@ -47,7 +47,7 @@ install: script: - mv ocrmypdf dont_import_this_ocrmypdf -- pytest +- pytest -n auto - mv dont_import_this_ocrmypdf ocrmypdf deploy: diff --git a/setup.cfg b/setup.cfg index 579a575c..432d7f5c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -11,3 +11,4 @@ ignore = [tool:pytest] norecursedirs = lib .pc .git output cache resources testpaths = tests +addopts = -n auto \ No newline at end of file diff --git a/test_requirements.txt b/test_requirements.txt index 3e9f413a..a3e920b2 100644 --- a/test_requirements.txt +++ b/test_requirements.txt @@ -1,2 +1,3 @@ pytest >= 3.0 -pytest-helpers-namespace \ No newline at end of file +pytest-helpers-namespace +pytest-xdist \ No newline at end of file