diff --git a/pyproject.toml b/pyproject.toml index ccdf02f..90d1a39 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -61,10 +61,15 @@ tag_prefix = "" parentdir_prefix = "" [tool.pytest.ini_options] +minversion = "6" +testpaths = ["tests"] +log_level = "INFO" +xfail_strict = true +addopts = ["-ra", "--strict-config", "--strict-markers"] +filterwarnings = ["error"] norecursedirs = ["data"] doctest_optionflags = ["NORMALIZE_WHITESPACE", "IGNORE_EXCEPTION_DETAIL"] - [tool.coverage.run] branch = true parallel = true diff --git a/tox.ini b/tox.ini index 12a3b67..9dcdad2 100644 --- a/tox.ini +++ b/tox.ini @@ -63,6 +63,7 @@ commands = coverage erase coverage run -p -m bids_validator tests/data/bids-examples/ds000117 python -m pytest --doctest-modules --cov . --cov-append --cov-report term \ + min: -Wignore \ --junitxml=test-results.xml {posargs} coverage xml