File tree Expand file tree Collapse file tree 2 files changed +26
-12
lines changed Expand file tree Collapse file tree 2 files changed +26
-12
lines changed Original file line number Diff line number Diff line change @@ -116,23 +116,31 @@ skip-string-normalization = true
116116extend-exclude = ' _version.py'
117117
118118[tool .pytest .ini_options ]
119- norecursedirs = " .git"
120- addopts = " -sv --doctest-modules"
119+ minversion = " 6"
120+ testpaths = [" niworkflows" ]
121+ log_cli_level = " INFO"
122+ xfail_strict = true
123+ norecursedirs = [" .git" ]
124+ addopts = [
125+ " -svx" ,
126+ " -ra" ,
127+ " --strict-config" ,
128+ " --strict-markers" ,
129+ " --doctest-modules" ,
130+ # Config pytest-cov
131+ " --cov=niworkflows" ,
132+ " --cov-report=xml" ,
133+ " --cov-config=pyproject.toml" ,
134+ ]
121135doctest_optionflags = " ALLOW_UNICODE NORMALIZE_WHITESPACE ELLIPSIS"
122- env = """
123- PYTHONHASHSEED=0
124- """
125- filterwarnings = """
126- ignore::DeprecationWarning
127- """
136+ env = " PYTHONHASHSEED=0"
137+ filterwarnings = [" ignore::DeprecationWarning" ]
128138junit_family = " xunit2"
129139
130140[tool .coverage .run ]
131141branch = true
132142omit = [
133- " */tests/*" ,
134- " niworkflows/_version.py" ,
135- " niworkflows/conftest.py" ,
143+ " */_version.py" ,
136144]
137145
138146[tool .coverage .report ]
@@ -141,3 +149,9 @@ exclude_lines = [
141149 " raise NotImplementedError" ,
142150 " warnings\\ .warn" ,
143151]
152+
153+ [tool .coverage .paths ]
154+ source = [
155+ " niworkflows" ,
156+ " **/site-packages/niworkflows"
157+ ]
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ uv_resolution =
4646 min: lowest-direct
4747
4848commands =
49- pytest --cov-report term-missing --pyargs niworkflows -- durations =20 --durations-min =1.0 {posargs:-n auto}
49+ pytest --durations =20 --durations-min =1.0 --cov-report term-missing {posargs:-n auto}
5050
5151[testenv:style]
5252description = Check our style guide
You can’t perform that action at this time.
0 commit comments