-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Feature request: doctest report format as an option #1749
Comments
Thanks for the suggestion! 😁 |
@nicoddemus I made a basic implementation (see commit 625b603 in my fork, above), still need to do doc and tests but wanted your input on wether or not it's the right way to do it. Basically, I've seen that all |
@hartym if i recall correctly the code was made that way so we do not need to import doctest in case of no doctest test so your function pretty much removes that, since it does import dpoctest to get the options |
What's the point of that? |
no idea actually i think that came in before my time |
I understand that, I'd like to avoid this but can't think of a "clever" way to do it without having to duplicate informations found in the The only implementation I can think off (and did this before refactoring to this dict getter) is to getattr(...) the thing at the last minute, but looks nasty ... |
@The-Compiler apparently, some test check for example that the |
…ogress as a few checks fail (related to pytest-dev#1749)
…tested things like "logging") for argument parsing (fixes pytest-dev#1749)
PR at #1754 |
Doctest report format option (#1749)
Adding an option to the plugin to choose the type of report (e.g. None, REPORT_UDIFF, REPORT_NDIFF, REPORT_CDIFF) rather than the hard-coded REPORT_UDIFF
For example
py.test foo.py --doctest-module --doctest-report NONE
Would set
REPORT_UDIFF = 0
in _pytest/doctest.py:68 and return:while
py.test foo.py --doctest-module --doctest-report UDIFF
would set `REPORT_UDIFF = doctest.REPORT_UDIFF
` in _pytest/doctest.py:68 and return
The text was updated successfully, but these errors were encountered: