Skip to content

Commit 7717ad3

Browse files
authored
Merge pull request #59 from DimitriPapadopoulos/pytest
chore(ci): Apply Repo-Review suggestions [pytest]
2 parents c1040d4 + 50d9196 commit 7717ad3

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,15 @@ tag_prefix = ""
6161
parentdir_prefix = ""
6262

6363
[tool.pytest.ini_options]
64+
minversion = "6"
65+
testpaths = ["tests"]
66+
log_level = "INFO"
67+
xfail_strict = true
68+
addopts = ["-ra", "--strict-config", "--strict-markers"]
69+
filterwarnings = ["error"]
6470
norecursedirs = ["data"]
6571
doctest_optionflags = ["NORMALIZE_WHITESPACE", "IGNORE_EXCEPTION_DETAIL"]
6672

67-
6873
[tool.coverage.run]
6974
branch = true
7075
parallel = true

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ commands =
6363
coverage erase
6464
coverage run -p -m bids_validator tests/data/bids-examples/ds000117
6565
python -m pytest --doctest-modules --cov . --cov-append --cov-report term \
66+
min: -Wignore \
6667
--junitxml=test-results.xml {posargs}
6768
coverage xml
6869

0 commit comments

Comments
 (0)