From a5a191e4dbeaeb9350b2da937db23cc6c69c7da2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Pr=C3=BCsse?= Date: Fri, 10 Nov 2023 11:23:44 -0300 Subject: [PATCH] Try use xdist to speedup test suite run --- environment.devenv.yml | 1 + tasks.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/environment.devenv.yml b/environment.devenv.yml index de0eeda9..148bb5be 100644 --- a/environment.devenv.yml +++ b/environment.devenv.yml @@ -24,6 +24,7 @@ dependencies: - pytest-rerunfailures - pytest-selenium >2 - pytest-timeout + - pytest-xdist>=1.15 # Recent selenium versions (>=4.10.0) are currently incompatible with pytest-selenium (some constructor changed argument list). - selenium >=4.0.0, <4.10.0 {% if sys.platform != 'win32' %} diff --git a/tasks.py b/tasks.py index 01b7fce5..73cd7112 100644 --- a/tasks.py +++ b/tasks.py @@ -155,7 +155,7 @@ def docs(ctx, python_version=None): @invoke.task def test(ctx): print_message('test'.format(), color=Fore.BLUE, bright=True) - cmd = 'pytest --cov=qmxgraph --timeout=30 -v --durations=10' + cmd = 'pytest --cov=qmxgraph --timeout=30 -v --durations=10 -n auto --color=yes' import subprocess