From a407341bfd6432b1eff937a2141735e5f240ad8d Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Wed, 11 Dec 2024 11:26:00 -0500 Subject: [PATCH] chore(test): Update pytest config --- pyproject.toml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index ec2fbc8af5..9b9a0c1b01 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -118,10 +118,21 @@ per-file-ignores = [ [tool.pytest.ini_options] minversion = "8" +testpaths = ["src"] log_cli_level = "INFO" xfail_strict = true norecursedirs = [".git"] -addopts = ["-svx", "--doctest-modules", "-ra", "--strict-config", "--strict-markers", "--import-mode=importlib"] +addopts = [ + "-svx", + "-ra", + "--strict-config", + "--strict-markers", + "--doctest-modules", + # Config pytest-cov + "--cov=src/smriprep", + "--cov-report=xml", + "--cov-config=pyproject.toml", +] doctest_optionflags = "ALLOW_UNICODE NORMALIZE_WHITESPACE ELLIPSIS" env = "PYTHONHASHSEED=0" filterwarnings = ["ignore::DeprecationWarning"]