HOWTO: subunit with bzr selftest

Asked by Bob Tanner

How do you use SubUnit with bzr selftest?

Question information

English Edit question
subunit Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Vincent Ladeuil (vila) said :

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 :

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.