Ticket #7478 (closed enhancement: fixed)
TestSuite improvements
| Reported by: | hivert | Owned by: | hivert |
|---|---|---|---|
| Priority: | major | Milestone: | sage-4.3 |
| Component: | doctest | Keywords: | TestSuite |
| Cc: | sage-combinat | Author(s): | Florent Hivert, Nicolas M. Thiéry |
| Report Upstream: | N/A | Reviewer(s): | Nicolas M. Thiéry, Florent Hivert |
| Merged in: | sage-4.3.alpha0 | Work issues: |
Description (last modified by nthiery) (diff)
- Changes "... done" to ". . . pass" in the output of TestSuite?().run(verbose = True) to avoid unintentional matches
- Fix the doctests accordingly.
- Adds skip option; use it in sage/combinat/sf/jack.py and orthotriang.py
- In case of failure, execute the following tests after printing out a traceback, and write a summary at the end
- Only use verbose=True in the doctests when useful (category examples)
Rationale for the ...: when testing something in verbose mode the typical output of sage is:
sage: P = Sets().example("inherits")
sage: TestSuite(P).run(verbose=True)
running ._test_an_element() ... done
running ._test_element_pickling() ... done
running ._test_not_implemented_methods() ... done
running ._test_pickling() ... done
running ._test_some_elements() ... done
And there is some risks that the "..." match something they should'nt I change them to ". . ."
See discussion on sage-devel
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

