← Back to team overview

testrepository-dev team mailing list archive

testrepository 0.0.3 released

 

The below is the announcement I put on Launchpad.

With this release I'm going to upload testrepository to Debian - it is
now genuinely useful and not a 'clever toy'. I'm now hooked. First one
free and all that.

Another couple of releases and I'll be announcing to testing-in-python I
think. It might be time to ask for early adopter/experimentation too. As
testrepository only needs subunit output, it should be easy for most
anyone likely to be reading this message to give it a spin: I know that
it can run against zope.testrunner (with the Launchpad subunit support
patch), Trial (with the subunit reporter which is in trunk, and perhaps
in a release now?), and of course bzr and other 'extended-but-vanilla'
test suites, using 'python -m subunit.run'.

=========================

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
$ testr run test_selftest
running: ./bzr selftest --subunit test_selftest| testr load
======================================================================
FAIL: bzrlib.tests.test_selftest.TestRunSuite.test_runner_class
----------------------------------------------------------------------
Text attachment: log
------------
10.832 encoding stdout as sys.stdin encoding 'UTF-8'
------------
Text attachment: traceback
------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/testtools/runtest.py", line
128, in _run_user
    return fn(*args)
  File "/usr/lib/python2.6/dist-packages/testtools/testcase.py", line
368, in _run_test_method
    testMethod()
  File
"/home/robertc/source/baz/pending/working/bzrlib/tests/test_selftest.py", line 2969, in test_runner_class
    self.assertLength(2, calls)
AssertionError: Incorrect length: wanted 2, got 1 for
[<bzrlib.tests.CountingDecorator
tests=[<bzrlib.tests.test_selftest.Stub.test_foo id=0x6732e10>]>]
------------
id: 15 tests: 203 failures: 1
# Remind me of the failures
$ testr failing
======================================================================
FAIL: bzrlib.tests.test_selftest.TestRunSuite.test_runner_class
....
[<bzrlib.tests.test_selftest.Stub.test_foo id=0x6732e10>]>]
------------
# I fixed it
$ testr run --failing
running: ./bzr selftest --subunit
--load-list /home/robertc/source/baz/pending/working/failing.list| testr
load
id: 16 tests: 1

Attachment: signature.asc
Description: This is a digitally signed message part


Follow ups