Skip to content

Commit 85db111

Browse files
committed
chore: Update pytest config
1 parent ad150b0 commit 85db111

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

pyproject.toml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ NiBabel = "https://github.com/nipy/nibabel/pull/656"
3535
[project.optional-dependencies]
3636
niftiext = ["lxml"]
3737
test = [
38-
"pytest",
38+
"pytest >= 6",
3939
"pytest-cov",
4040
"pytest-env",
4141
"codecov",
@@ -63,8 +63,21 @@ __version__ = "{version}"
6363
fallback_version = "0.0"
6464

6565
[tool.pytest.ini_options]
66+
minversion = "6"
67+
testpaths = ["nitransforms"]
68+
log_cli_level = "INFO"
69+
xfail_strict = true
6670
norecursedirs = [".git"]
67-
addopts = "-svx --doctest-modules"
71+
addopts = [
72+
"-svx",
73+
"-ra",
74+
"--strict-config",
75+
"--strict-markers",
76+
"--doctest-modules",
77+
"--cov=nitransforms",
78+
"--cov-report=xml",
79+
"--cov-config=pyproject.toml",
80+
]
6881
doctest_optionflags = "ALLOW_UNICODE NORMALIZE_WHITESPACE ELLIPSIS"
6982
env = "PYTHONHASHSEED=0"
7083
filterwarnings = ["ignore::DeprecationWarning"]

0 commit comments

Comments
 (0)