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:

Status badges


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"


cmd = "Test %s/%s: "%(self.sources_completed+1, len(self.controller.sources))+" sage -t"

or something like that in src/sage/doctest/ Hopefully someone who knows the framework can catch this.

Change History (6)

comment:1 Changed 5 years ago by jmantysalo

  • Milestone changed from sage-7.3 to sage-7.4

comment:2 Changed 5 years ago by jmantysalo

  • Branch set to u/jmantysalo/counter-testing

comment:3 Changed 5 years ago by jmantysalo

  • Cc tscrim chapoton added
  • Commit set to d59f4d194a09ada36e7d7ba43adaf33e1b87d7ea
  • Status changed from new to needs_review

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:

d59f4d1Add counter to testing.

comment:4 Changed 5 years ago by jmantysalo

  • Authors set to Jori Mäntysalo

comment:5 Changed 5 years ago by jdemeyer

  • Status changed from needs_review to needs_work

See patchbot.

comment:6 Changed 5 years ago by jmantysalo

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.