How to get Nose to run doctests from my Markdown documentation?

Skip Montanaro skip.montanaro at gmail.com
Wed Sep 20 11:14:40 EDT 2017


> I routinely include doctests as a source of test cases in my nose runs, but I want to also coax it to check the
> examples in my Markdown files. Is there a way to do this? If I explicitly give a Markdown file on the command line,
> nose complains:
>
> Unable to load tests from file ...

I believe I figured this out. It appears to be sufficient to add

doctest-extension=md

to my noserc file.

Camping happy, am I,

Skip



More information about the Python-list mailing list