#19519: flag long test with time indication
-------------------------+-------------------------------------------------
       Reporter:         |        Owner:
  vdelecroix             |       Status:  needs_review
           Type:         |    Milestone:  sage-6.10
  enhancement            |   Resolution:
       Priority:  major  |    Merged in:
      Component:         |    Reviewers:
  doctest framework      |  Work issues:
       Keywords:         |       Commit:
        Authors:         |  1ce0bf5fdc19a0d04593df4727a219da218aadb4
  Vincent Delecroix      |     Stopgaps:
Report Upstream:  N/A    |
         Branch:         |
  public/19519           |
   Dependencies:         |
-------------------------+-------------------------------------------------

Old description:

> In order to skip too long doctests we introduce time indications to `long
> time` flag like
> {{{
> sage: (2**2000 + 31).is_prime()  # long time: 1h
> }}}
> The allowed units are: `s` (seconds), `m` (minutes), `h` (hours), `d`
> (days).
>
> We also:
>  - modify the `--long` option of `sage -t` to allow skipping too long
> (with a default of 10 sec)
>  - document it in the manual

New description:

 In order to skip too long doctests we introduce time indications to `long
 time` flag like
 {{{
 sage: (2**2000 + 31).is_prime()  # long time: 1h
 }}}
 The allowed units are: `s` (seconds), `m` (minutes), `h` (hours), `d`
 (days).

 We also:
  - modify the `--long` option of `sage -t` to accept an arguemnt such as
 in
 {{{
 $ sage -t --long 1m
 $ sage -t --long 3
 }}}
   In the first example, doctest flagged with a time > 1min will be skipped
 and in the second case, doctest flagged with a time > 3sec will be
 skipped. The default is set to 10secs.
  - document this enhanced `long time` option in the manual

--

Comment (by vdelecroix):

 I am lacking documentation in the developer manual, but I want a patchbot
 report...

--
Ticket URL: <http://trac.sagemath.org/ticket/19519#comment:10>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to