Closed rikirenz closed 7 years ago
well, i would simply exclude the bdd code completely from sphinx, why would you need the automatic docs for bdd stuff?
Well the idea is that people that want to write tests with pytest-bdd
should not read the code to know all the steps. They should read the doc and see the steps from there.
the use case makes sense, just not sure if it's possible without custom plugin for sphinx from the error report you gave it complaints about the module of the step, but we do set the module actually, so not sure what's the actual problem. Might be the spaces in the function name, which we use
I think anyway that there isn't a way to avoid the usage of spaces in pytest-bdd
decorators. I will try to open an issue in the sphinx project and see what happen. I will update this issue if I am going to find a solution.
For now the best solution is: ignoring the pytest-bdd
functions when the sphinx
generation runs.
It seems that Sphinxcontrib-napoleon is not able to generate the documentation for the functions with the
pytest-bdd
decorators.These are the packages versions:
This is the stack trace:
Do you have any ideas?