#5819: make sage -coverage require a loads/dumps test for each class defined in
a
file
-------------------------+--------------------------------------------------
Reporter: AlexGhitza | Owner: mabshoff
Type: enhancement | Status: new
Priority: major | Milestone: sage-3.4.2
Component: doctest | Keywords: coverage loads dumps
-------------------------+--------------------------------------------------
At the moment, {{{sage -coverage file.py}}} complains if {{{file.py}}} has
no doctests of the form {{{s == loads(dumps(s))}}}. However, it says
nothing if there is only one such doctest in {{{file.py}}}, independent of
how many different classes are defined in that file.
Ideally, we would have a doctest {{{s == loads(dumps(s))}}} for every
single class. Thus, we should change {{{sage -coverage}}} to detect if
there are classes without such doctests and complain about it.
See also the thread at
http://groups.google.com/group/sage-
devel/browse_thread/thread/bc99d36058aff638
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5819>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---