testr load should display failures incrementally

Bug #613152 reported by Jonathan Lange
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Testrepository
Fix Released
Wishlist
Jonathan Lange

Bug Description

"testr load" currently waits for the tests to finish running before displaying any output. This sucks for slow tests. Ideally, it would display failure information as it gets it.

Tags: testr-load

Related branches

Revision history for this message
Jonathan Lange (jml) wrote :

I've tried fixing this bug, but I'm finding it pretty hard to disentangle.

Some random thoughts:
  * Command.output_run() basically requires the full output to be ready before it is called, so it's hard to produce incremental output without going outside the Command framework.

  * Maybe testrepository UIs should have their own thing that implements TestResult and can choose how to display them.

  * The "output_stream" temporary variable should be deleted, and "output" renamed to "output_stream". It would make the code easier to read.

tags: added: testr-load
Revision history for this message
Robert Collins (lifeless) wrote :

output_run can be made to use generators - it just needs a little TestResult/TestCase adaption glue. I don't know what you mean by " * Maybe testrepository UIs should have their own thing that implements TestResult and can choose how to display them." - UI already has a TestResult based method - perhaps you're talking about where the control lies?

Changed in testrepository:
status: New → Triaged
importance: Undecided → Wishlist
Jonathan Lange (jml)
Changed in testrepository:
status: Triaged → In Progress
assignee: nobody → Jonathan Lange (jml)
Jonathan Lange (jml)
Changed in testrepository:
status: In Progress → Fix Committed
Changed in testrepository:
milestone: none → next
Changed in testrepository:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.