pchomik / pytest-spec

Library pytest-spec is a pytest plugin to display test execution output like a SPECIFICATION.
GNU General Public License v2.0
100 stars 19 forks source link

pyproject example #56

Closed MartinThoma closed 2 months ago

MartinThoma commented 1 year ago

Is there a recommended configuration for pyproject? When I install pytest-spec, nothing seems to change. When I add

[tool.pytest]
spec_header_format = "{module_path}:"
spec_test_format = "{result} {name}"

to my pyproject.toml, nothing seems to change either.

jeffnyman commented 1 year ago

For what it's worth I had to make the group the following:

[tool.pytest.ini_options]
addopts = "--spec"
spec_test_format = "{result} {docstring_summary}"

That addition of "ini_options" is what ended up working for me.

ya55en commented 6 months ago

Would be great to have this in the README as well ... I would submit a PR if that's acceptable.

pchomik commented 2 months ago

Solved by #58