#12415: Update doctesting framework
-------------------------------------------------------------------------------------------------------------------------------------------------+
       Reporter:  robertwb                                                      
                                                                 |         
Owner:  mvngu                             
           Type:  enhancement                                                   
                                                                 |        
Status:  needs_work                        
       Priority:  major                                                         
                                                                 |     
Milestone:  sage-5.4                          
      Component:  doctest                                                       
                                                                 |    
Resolution:                                    
       Keywords:                                                                
                                                                 |   Work 
issues:  intermittent interrupt.pyx failure
Report Upstream:  N/A                                                           
                                                                 |     
Reviewers:  Jeroen Demeyer                    
        Authors:  David Roe, Robert Bradshaw                                    
                                                                 |     Merged 
in:                                    
   Dependencies:  #13147,#13146, #13145, #12723, #12392, #12393, #12395, 
#12396, #12397, #12381, #12382, #12383, #12384, #11871, #13195, #13121  |      
Stopgaps:                                    
-------------------------------------------------------------------------------------------------------------------------------------------------+
Changes (by roed):

  * dependencies:  #13147,#13146, #13145, #12723, #12392, #12393, #12395,
                   #12396, #12397, #12381, #12382,
                   #12383, #12384, #11871, #13195 =>
                   #13147,#13146, #13145, #12723,
                   #12392, #12393, #12395, #12396,
                   #12397, #12381, #12382, #12383,
                   #12384, #11871, #13195, #13121


Old description:

> 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.
>  1. Customizable comparison rather than mutating doctests into new
> doctests (e.g. followup to #10952).
>  1. Eliminate need to write temporary files for every doctested file.
>  1. Constant headaches caused by the difference in doctesting library vs.
> non-library files.
>  1. 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_vs_51b5.patch],
> [attachment:12415_doctest_fixes.patch],
> [attachment:12415_framework.patch], [attachment:12415_doc.patch]
>
> '''Apply''' [attachment:12415_script.patch] to the scripts repo
>
> '''Apply''' [attachment:12415_sagenb_fixes_vs_11080.patch] to the sagenb
> repo (fixes doctest errors) or wait for #13121
>
> '''Apply''' [attachment:12415_spkg_bin_sage.patch] to the root repo

New description:

 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.
  1. Customizable comparison rather than mutating doctests into new
 doctests (e.g. followup to #10952).
  1. Eliminate need to write temporary files for every doctested file.
  1. Constant headaches caused by the difference in doctesting library vs.
 non-library files.
  1. 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_vs_51b5.patch],
 [attachment:12415_framework.patch],
 [attachment:12415_framework_fixes.patch],
 [attachment:12415_doctest_fixes.patch],
 [attachment:12415_more_doctest_fixes.patch], [attachment:12415_doc.patch]

 '''Apply''' [attachment:12415_script.patch] to the scripts repo

 '''Apply''' [attachment:12415_spkg_bin_sage.patch] to the root repo

--

Comment:

 Alright, I fixed a bunch of bugs in the parsing of files.  I added two new
 patches since the old ones were getting big.  Sorry for the huge size of
 this ticket: some of the changes in
 [attachment:12415_more_doctest_fixes.patch] can be split off into new
 tickets, but many of them need to be made along with the switch to the new
 testing code.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12415#comment:120>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to