Opened 5 years ago
Last modified 5 years ago
#20971 needs_work enhancement
Add counter to testing
Reported by: | jmantysalo | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | sage-7.4 |
Component: | doctest framework | Keywords: | |
Cc: | tscrim, chapoton | Merged in: | |
Authors: | Jori Mäntysalo | Reviewers: | |
Report Upstream: | N/A | Work issues: | |
Branch: | u/jmantysalo/counter-testing (Commits, GitHub, GitLab) | Commit: | d59f4d194a09ada36e7d7ba43adaf33e1b87d7ea |
Dependencies: | Stopgaps: |
Description
It would be nice to have a counter showing how many test has already run, or how many is left. For example changing
cmd = "sage -t"
to
cmd = "Test %s/%s: "%(self.sources_completed+1, len(self.controller.sources))+" sage -t"
or something like that in src/sage/doctest/reporting.py
. Hopefully someone who knows the framework can catch this.
Change History (6)
comment:1 Changed 5 years ago by
- Milestone changed from sage-7.3 to sage-7.4
comment:2 Changed 5 years ago by
- Branch set to u/jmantysalo/counter-testing
comment:3 Changed 5 years ago by
- Cc tscrim chapoton added
- Commit set to d59f4d194a09ada36e7d7ba43adaf33e1b87d7ea
- Status changed from new to needs_review
comment:4 Changed 5 years ago by
comment:6 Changed 5 years ago by
My approach was wrong, [x/N]
-prefix is not needed in error reporting. Anybody knows enought of doctesting framework to make this work?
(Or, first: anyone other wants something like this?)
Note: See
TracTickets for help on using
tickets.
One line patch, but what you think about the idea? I would like to have some progress meter when possible, this adds at least something.
New commits:
Add counter to testing.