From bac0942033acdf21d9662105c7f2691287c8c71b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 27 Aug 2023 10:41:32 +0200 Subject: [PATCH] pytest: report slow tests and set a 30 timeout --- pkgs/clan-cli/pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/clan-cli/pyproject.toml b/pkgs/clan-cli/pyproject.toml index fcaad7d79..facbf9f9a 100644 --- a/pkgs/clan-cli/pyproject.toml +++ b/pkgs/clan-cli/pyproject.toml @@ -15,7 +15,8 @@ exclude = ["clan_cli.nixpkgs*"] clan_cli = [ "config/jsonschema/*", "webui/assets/**/*"] [tool.pytest.ini_options] -addopts = "--cov . --cov-report term --cov-report html:.reports/html --no-cov-on-fail --workers auto" +faulthandler_timeout = 30 +addopts = "--cov . --cov-report term --cov-report html:.reports/html --no-cov-on-fail --workers auto --durations 5" norecursedirs = "tests/helpers" [tool.mypy]