79083238

Date: 2024-10-13 13:30:02
Score: 1
Natty:
Report link

+1 to @kartiks77

quite likely that this wasn't available yet at the time of the question (added in version 6.0)

I opted for specifying testpaths, but addopts works too, and it's very good to know for setting defaults

# pyproject.toml
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q"
testpaths = [
    "tests",
    "integration",
]

from pytest's docs

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @kartiks77
  • Low reputation (0.5):
Posted by: the-citto