From d2b089256b8c9ddb1d2b47500482afb28c1f3233 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 18 Nov 2024 14:55:16 +0100 Subject: [PATCH] pytest: add xdist for parallel testing --- default.nix | 1 + pyproject.toml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/default.nix b/default.nix index 7a069b6..b3ba44d 100644 --- a/default.nix +++ b/default.nix @@ -14,6 +14,7 @@ pkgs.python3Packages.buildPythonApplication { ]; nativeCheckInputs = [ pkgs.python3Packages.pytest + pkgs.python3Packages.pytest-xdist ]; checkPhase = '' PYTHONPATH= $out/bin/nix-update --help diff --git a/pyproject.toml b/pyproject.toml index 3452bc2..e0f605a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,6 +21,9 @@ Homepage = "https://github.com/Mic92/nix-update" [project.scripts] nix-update = "nix_update:main" +[tool.pytest.ini_options] +addopts = "-v -n auto" + [tool.ruff] target-version = "py311" line-length = 88