You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As per the discussion in pytest-dev/pytest#12228, it seems that pytest recommends the addopts setting to be a string (although that is pretty much a temporary hack due to transitory nature of tool.pytest.ini_options).
I don't gather that from the discussion. The person who suggested it be a string also suggested it not be in pyproject.toml. Since this isn't supported:
[tool.pytest.ini_options]
addopts = """ # show 10 slowest invocations: --durations=10 # a bit of verbosity doesn't hurt: -v"""
but this is:
[tool.pytest.ini_options]
addopts = [
# show 10 slowest invocations:"--durations=10",
# a bit of verbosity doesn't hurt:"-v",
]
I'd say it's significantly better to have it as a list of strings.
As per the discussion in pytest-dev/pytest#12228, it seems that
pytest
recommends theaddopts
setting to be a string (although that is pretty much a temporary hack due to transitory nature oftool.pytest.ini_options
).cookie/docs/pages/guides/pytest.md
Line 76 in fea6e2f
The text was updated successfully, but these errors were encountered: