#7493: Implement sage -t --time
---------------------------+------------------------------------------------
Reporter: nthiery | Owner: tbd
Type: enhancement | Status: new
Priority: major | Milestone: sage-wishlist
Component: doctest | Keywords:
Work_issues: | Author:
Reviewer: | Merged:
---------------------------+------------------------------------------------
When a test file takes time to execute, it would be handy to have a quick
overview of which specific tests take long.
Something like:
{{{
sage -t --verbose --time bla.py
Trying:
1+1
Expecting:
2
ok [0.1ms]
Trying:
factor(....)
Expecting:
...
ok [10s] warning: please use # long time
Trying:
factor(.....) # long time
Expecting:
...
ok [10s]
Trying:
factor(........)
Expecting:
...
ok [300s] warning: this is too long!
}}}
And in non verbose mode:
{{{
sage -t --time bla.py
Warning: factor(....) line 30 takes 10s: please use # long time
Warning: factor(........) line 50 takes 300s: this is too long!
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7493>
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].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=.