-
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
Provide hook to run doctests as part of normal test suite #198
Comments
The problem I've run into with it is that to know what setup code (in I think it's probably simplest to just throw an error if any errors are reported during
|
Yes, that would definitely be good.
That should work for now. But I think it would still be nice to have a specific |
Yes, there's enough flexibility in the build "pipeline" to be able to reorder and/or disable certain steps, so we could probably add a |
Actually, if you would not just throw an exception, but instead use the |
Hooking into the testset infrastructure might work quite nicely. I'd want to leave something like that until we've dropped Julia 0.4 support though, since otherwise it might get kind of messy. Dropping 0.4 will likely happen for the Documenter 0.4 release, whenever that happens, there's no set date just yet. |
Hm, if you just use |
The current output of |
Now that julia 0.5 support is dropped, maybe this could be implemented? I don't really care about the details, but it would be great if I could just add the one line from my original post here to my |
Fantastic! Is there some documentation how to include doctests in the normal I just tried to look at the dev version of the Documenter.jl docs, but ironically those don't seem to be hosted/work? |
Well, the PR was merged 6 minutes ago. The docs are still building 😂 I can offer this as a temporary substitute though 🙂 |
It would be great if there was a function that I could call in my normal
runtests.jl
script that runs all the doctests, for example like this:This would have two benefits, as far as I can see:
The text was updated successfully, but these errors were encountered: