Open 1Mark opened 6 days ago
The ini option key in pyproject is equivalent to using pytest.ini
The ini option key in pyproject is equivalent to using pytest.ini
That's what I thought but it didn't work.
https://github.com/pytest-dev/pytest-html/blob/master/src%2Fpytest_html%2Fplugin.py#L75-L80
Based on this code pyproject is supported
[tool.pytest.ini_options]
addopts="--html=report.html --self-contained-html"
I managed to get it working via the above.
However, the below does not work
[tool.pytest.ini_options]
generate_report_on_test = "True"
Hello!
pyproject.toml
isn't supported and onlypytest.ini
to enablegenerate_report_on_test
and I have an existing project that usespyproject.toml
with[tool.pytest.ini_options]
since you can't use both at the same time, what would you recommend?