-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doctest manual pages too with doctest? #1051
Comments
@davidanthoff wrote in #1053 (comment):
That would be ideal. So, there is the doctest function which gets you half-way there at the moment. You can run What is missing, though, is the ability to run doctests on manual pages in a simple way. We could have some automagic behaviour:
I was slightly worried that there might be some state in The only thing to be aware of is when using Instead of doing everything in a single @test doctest(MyPackage)
@test doctest_pages("../docs/src") But probably, if you do |
Sounds good! Not in the short term, but would it make sense to move some of the info that is in |
#774 brought the
doctest
function, but it can only check the doctests in docstrings at the moment. It would be worth looking into whether there are any issues with trying to doctest manual pages too in this lightweight manner.The text was updated successfully, but these errors were encountered: