Skip to content

Commit

Permalink
Parallelize unit tests on the pytest level
Browse files Browse the repository at this point in the history
It won't be a huge gain, maybe only 5 minutes in total,
because we are targeting 3 to 4 minutes jobs,
and travis runners have only 2 cores.

PR ansible#1706. Ref ansible#1669.

Signed-off-by: Fabrice Flore-Thebault <themr0c@users.noreply.github.com>
  • Loading branch information
themr0c authored and ssbarnea committed Jan 31, 2019
1 parent 6ccc363 commit 5bd81d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ extras =
openstack
vagrant
commands =
unit: pytest test/unit/ --cov={toxinidir}/molecule/ --no-cov-on-fail {posargs}
unit: pytest test/unit/ --cov={toxinidir}/molecule/ --no-cov-on-fail -n auto {posargs}
functional: pytest test/functional/ {posargs}
lint: flake8
lint: yamllint -s test/ molecule/
Expand Down

0 comments on commit 5bd81d1

Please sign in to comment.