Merge lp:~lifeless/pyjuju/testrsupport into lp:pyjuju
Status: | Merged |
---|---|
Approved by: | Gustavo Niemeyer |
Approved revision: | 545 |
Merged at revision: | 546 |
Proposed branch: | lp:~lifeless/pyjuju/testrsupport |
Merge into: | lp:pyjuju |
Diff against target: |
26 lines (+6/-1) 2 files modified
.bzrignore (+2/-1) .testr.conf (+4/-0) |
To merge this branch: | bzr merge lp:~lifeless/pyjuju/testrsupport |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gustavo Niemeyer | Approve | ||
Review via email: mp+111755@code.launchpad.net |
Description of the change
Testrepository support [a=lifeless]
This adds a configuration for testrepository support to the source tree. Testrepository is super useful for iterating on test suites - particularly slow ones like juju's.
I also tweak the trial ignore rule, as trial will create multiple directories, not just _trial_temp.
While a testrepository tutorial is out of place here, I've included a sample transcript to give you a taste for using it:
juju/working$ testr init
juju/working$ testr run
running=./test --reporter=subunit
No handlers could be found for logger "juju.ec2"
Using system zookeeper classpath from /etc/zookeeper/
Ran 1979 tests in 337.598s
PASSED (id=0, skips=12)
$ testr slowest
Test id Runtime (s)
-------
juju.control.
juju.control.
juju.control.
juju.lib.
juju.unit.
juju.control.
juju.unit.
juju.control.
juju.control.
juju.control.
$ testr failing
PASSED (id=0)
$ testr last
Ran 1979 tests in 337.598s
PASSED (id=0, skips=12)
R=niemeyer, hazmat
A=lifeless
I don't know those tools, but it looks reasonable.