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
sphinx.ext.doctest: Show only failing tests (hide summary for passing) #8654
Comments
Unfortunately, doctest extension is not maintained. So there is no chance to add a new option. I hope somebody will try this feature request in the future. |
I had this same issue and ended up forking the extension to fix it. I've made a branch with the changes I made (there were very few needed, as mostly I'm not sure how best to write a test for those changes, as I'm unfamiliar with Sphinx's test suite. If anyone wants to take over those changes (no need to credit me) and write some tests, go for it. 👍 I'd love to stop maintaining my own fork of the |
@treyhunner are you happy to open a PR to add the feature back to the Sphinx core? A |
I was pointed to this discussion from elsewhere. Long ago I switch to using Sybil for doctests and have been quite happy with it. Here's an example of my conftest.py file setting up Sybil and integrating it with |
I just opened #10938.
This project looks great! 😮 Thanks for pointing out Sybil @warsaw and for sharing that example |
My documentation 1 has thousands of doctests (lines starting with
>>>
) in hundreds of modules.Currently my output is flooded by messages like 2:
If there is an error, you have to scroll through very long output until you find it.
Very often failing test line number (in file) are incorrect.
If I indent code block, line numbers are not displayed at all (they appears as question marks
?
).Is there a chance for this to work with Markdown (recommonmark)?
I found, that if you put
eval_rst
code fence 3, tests are executed.The text was updated successfully, but these errors were encountered: