I successfully use Nose to find unit tests and doctests in my Python source. I'd like it to find and run examples in Markdown files as well. I added
doctest-extensions=md
which sorta works, but not quite. I currently have two examples embedded in the file as preformatted text (indented from the left-hand margin). It seems to find only the second, and gets itself confused about indentation. I added
doctest-options=+NORMALIZE_WHITESPACE
which seems to have solved the indentation issue, but it still only finds the second example. If I remove it, it finds the first example. If I add a third example further down the file, it finds that, but not the other two.
Is it possible to have my Nose+Markdown cake and eat it too?
Thx,
Skip Montanaro