You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2022/12/08 22:56:50 UTC

[libcloud] 02/04: Also add pytest-xdist config option into pytest.ini config.

This is an automated email from the ASF dual-hosted git repository.

tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git

commit 70641e5bddaf5af935a024b8ca3894fa0b8c50a1
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Thu Dec 8 23:39:02 2022 +0100

    Also add pytest-xdist config option into pytest.ini config.
---
 pytest.ini | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pytest.ini b/pytest.ini
index cdecf5329..10a4daf35 100644
--- a/pytest.ini
+++ b/pytest.ini
@@ -2,7 +2,8 @@
 python_classes=*Test
 testpaths=libcloud/test
 # Show slowest 10 tests in the output
-addopts = --durations=10
+# for pytest-xdist, we want to distribute tests by file
+addopts = --durations=10 --dist loadfile
 # Ignore UserWarning's
 filterwarnings =
     ignore::UserWarning