Closed Hubro closed 3 years ago
The first half of my request could be implemented by reading the docstring and making the first line available as a format string variable:
[pytest]
spec_test_format = [{result}] {docstring_summary}
Hi,
I looked into code and it is possible to add docstring_summary
variable without huge effort. After implementation 3 variables will be available for spec_test_format
:
Regarding format I would like stay with current approach. The logic is generic and is working correctly with multiple solutions.
Will be part of next release.
Take this test:
This currently produces:
I would like it to produce:
Would it be possible to add that as an option?
Or even better, add an option called (for example)
spec_use_docstring_summary
that, if set to true, makespytest-spec
read docstrings like these:And produce reports like these: