Closed
Description
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:
================================== FAILURES ===================================
______________________________ [doctest] foo.bar ______________________________
013 '''
014 >>> bar()
Expected:
a b
0 1 4
1 2 4
2 3 6
Got:
a b
0 1 4
1 2 5
2 3 6
while
py.test foo.py --doctest-module --doctest-report UDIFF
would set `REPORT_UDIFF = doctest.REPORT_UDIFF
` in _pytest/doctest.py:68 and return
================================== FAILURES ===================================
______________________________ [doctest] foo.bar ______________________________
013 '''
014 >>> bar()
Differences (unified diff with -expected +actual):
@@ -1,4 +1,4 @@
a b
0 1 4
-1 2 4
+1 2 5
2 3 6