HOWTO: subunit with bzr selftest

Asked by Bob Tanner

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:
Last reply:
Revision history for this message
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.

Revision history for this message
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.