From 51dc60f8a7f021d1d0758bca51b8ffbc322ac33f Mon Sep 17 00:00:00 2001 From: Pradyun Gedam Date: Fri, 27 Sep 2019 23:25:32 +0530 Subject: [PATCH] Parallelize tests as much as possible, by default --- noxfile.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/noxfile.py b/noxfile.py index f08dbb56b..185f8c0ce 100644 --- a/noxfile.py +++ b/noxfile.py @@ -84,8 +84,11 @@ def test(session): session.run(*protected_pip("install", ".")) session.run(*protected_pip("install", "-r", REQUIREMENTS["tests"])) + # Parallelize tests as much as possible, by default. + arguments = session.posargs or ["-n", "auto"] + # Run the tests - session.run("pytest", *session.posargs, env={"LC_CTYPE": "en_US.UTF-8"}) + session.run("pytest", *arguments, env={"LC_CTYPE": "en_US.UTF-8"}) @nox.session