[patch] better progress bars for selftest, cleanup test code

Martin Pool mbp at canonical.com
Tue Oct 31 02:06:40 GMT 2006


I did some cleanups while travelling:

  * Give tests progress bars that look like this::

   [46/3777, 10 skipped in 41s]  
test_bundle.V08BundleTester.test_last_modified

    Being able to see the full test name is much nicer IMO.

  * Test progress now also looks reasonable when run as a vim  
subprocess.

  * Clean up TestResult, cmd_selftest,

  * Progress bars now just truncate text if it's too long, rather  
than failing.

  * Tests should still work fine using pyunit, trial, or some other  
test runner -
    this only changes our runner implementation.

  * While doing this I noticed the listdir tests can fail if os.listdir
    returns files unsorted, which it may.

  * Removed some tests that were IMO too tied to the previous usage of
    progress bars by tests.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20061031-test-progress.diff
Type: application/octet-stream
Size: 29545 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20061031/a30e2489/attachment.obj 
-------------- next part --------------

-- 
Martin





More information about the bazaar mailing list