HOWTO: subunit with bzr selftest

Asked by Bob Tanner on 2009-04-02

How do you use SubUnit with bzr selftest?

Question information

Language:
English Edit question
Status:
Answered
For:
subunit Edit question
Assignee:
No assignee Edit question
Last query:
2009-04-02
Last reply:
2009-08-19
Vincent Ladeuil (vila) said : #1

Using the --subunit selftest option will output test results in the subunit protocol.

From there you need to feed some TestResult object with that.

You may want to look at bzrlib.test.reinvoke_for_tests for an example.

Robert Collins (lifeless) said : #2

bzr selftest --subunit | tee tests.log | subunit2pyunit --progress
bzr selftest $(subunit-filter --no-skip < fail.log | subunit-ls --no-passthrough) --subunit

Is a good recipe to cycle on failing tests.

Can you help with this problem?

Provide an answer of your own, or ask Bob Tanner for more information if necessary.

To post a message you must log in.