Closed Jordan-Dennis closed 1 year ago
As always there is another option for this called pytest-readme
, but I think this is specific to the README.md
, so I am not sure it is so useful.
So I think that I will use this given that I am going to write the tutorials in .md
files. I have just discovered another plugin called pytest-md
that generates an .md
summary of the tests. I wonder if this interacts with the rest of the (many) plugins that I am using.
Nevermind, pytest-markdown
requires an older version of pytest
so I will not use it.
pytest-readme
requires a conftest.py
file in the directory of the README.md
so that pretty much kills that idea.
Perhaps I can simply fork pytest-markdown
and update the version number.
Never-mind. The package is no longer maintained so I will not add it as a dependency.
Hi all, I have not decided how far I want to take the docs yet, but if I decide to do them properly then the
pytest-markdown
package might be a good option for ensuring the correctness of code snippets embedded in the docs. Regards Jordan.