Opened 11 years ago

Last modified 9 years ago

#12415 closed enhancement

Update doctesting framework — at Version 18

Reported by: Robert Bradshaw Owned by: Minh Van Nguyen
Priority: major Milestone: sage-5.9
Component: doctest framework Keywords:
Cc: Keshav Kini, R. Andrew Ohana, John Palmieri Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: #13147,#13146, #13145, #12723, #12392, #12393, #12395, #12396, #12397, #12381, #12382, #12383, #12384 Stopgaps:

Status badges

Description (last modified by David Roe)

There are several improvements that would be good to make, including but not limited to:

  1. Forking rather than starting up a new Sage each time.
  2. Customizable comparison rather than mutating doctests into new doctests (e.g. followup to #10952).
  3. Eliminate need to write temporary files for every doctested file.
  4. Constant headaches caused by the difference in doctesting library vs. non-library files.
  5. The ability to drop into a debugger if a doctest raises an exception.

Robert's code is at

http://code.google.com/p/sagemath-timer/

and does most of the above (plus more which has been moved to followup tickets #12720 and #12722)

Apply attachment:12415_stderr.patch, attachment:12415_doctest_fixes.patch, attachment:12415_framework.patch

Change History (18)

comment:1 Changed 11 years ago by Robert Bradshaw

Description: modified (diff)

comment:2 Changed 11 years ago by Robert Bradshaw

Description: modified (diff)

comment:3 Changed 11 years ago by David Roe

Description: modified (diff)

I'm working on this. E-mail me if you want to collaborate.

comment:4 Changed 11 years ago by David Roe

Description: modified (diff)

comment:5 Changed 11 years ago by David Roe

Description: modified (diff)

comment:6 Changed 11 years ago by David Roe

Dependencies: #12392, #12393, #12395, #12396, #12397, #12381, #12382, #12383, #12384

comment:7 Changed 11 years ago by David Roe

Dependencies: #12392, #12393, #12395, #12396, #12397, #12381, #12382, #12383, #12384#12723, #12392, #12393, #12395, #12396, #12397, #12381, #12382, #12383, #12384

comment:8 Changed 11 years ago by Keshav Kini

Cc: Keshav Kini added

comment:9 Changed 11 years ago by Robert Bradshaw

12415_2.patch seems to contain a lot of tempfile changes, could you split out the doctest changes into a separate patch (or are these affecting doctests?)

comment:10 Changed 11 years ago by R. Andrew Ohana

Cc: R. Andrew Ohana added

comment:11 Changed 11 years ago by R. Andrew Ohana

apparently even I forget my trac username is not what it should be

comment:12 Changed 10 years ago by David Roe

Dependencies: #12723, #12392, #12393, #12395, #12396, #12397, #12381, #12382, #12383, #12384#13145, #12723, #12392, #12393, #12395, #12396, #12397, #12381, #12382, #12383, #12384

comment:13 Changed 10 years ago by David Roe

Dependencies: #13145, #12723, #12392, #12393, #12395, #12396, #12397, #12381, #12382, #12383, #12384#13146, #13145, #12723, #12392, #12393, #12395, #12396, #12397, #12381, #12382, #12383, #12384

comment:14 Changed 10 years ago by David Roe

Dependencies: #13146, #13145, #12723, #12392, #12393, #12395, #12396, #12397, #12381, #12382, #12383, #12384#13147,#13146, #13145, #12723, #12392, #12393, #12395, #12396, #12397, #12381, #12382, #12383, #12384

comment:15 Changed 10 years ago by David Roe

I've moved the patches dealing with temporary files to #13147.

comment:16 Changed 10 years ago by John Palmieri

Cc: John Palmieri added

comment:17 Changed 10 years ago by David Roe

Description: modified (diff)

comment:18 Changed 10 years ago by David Roe

Description: modified (diff)
Note: See TracTickets for help on using tickets.