0.0.3 released
Written for Testrepository by Robert Collins on 2010-02-28
I'm very happy to released testrepository 0.0.3. This adds the 'testr run' workflow, which permits a tight loop around test failures, with testr tracking the failures, while still allowing you to run only some tests - and can by default run only the failing tests.
See the documentation for details, but as a teaser:
# I break a test test
$ testr run test_selftest
running: ./bzr selftest --subunit test_selftest| testr load
=======
FAIL: bzrlib.
-------
Text attachment: log
------------
10.832 encoding stdout as sys.stdin encoding 'UTF-8'
------------
Text attachment: traceback
------------
Traceback (most recent call last):
File "/usr/lib/
return fn(*args)
File "/usr/lib/
testMethod()
File "/home/
self.
AssertionError: Incorrect length: wanted 2, got 1 for [<bzrlib.
------------
id: 15 tests: 203 failures: 1
# Remind me of the failures
$ testr failing
=======
FAIL: bzrlib.
....
[<bzrlib.
------------
# I fixed it
$ testr run --failing
running: ./bzr selftest --subunit --load-list /home/robertc/
id: 16 tests: 1