Make ZopeTestInSubProcess a RunTest thing, rather than a TestCase mixin

Bug #741191 reported by Jonathan Lange
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Low
Colin Watson

Bug Description

ZopeTestInSubProcess runs its tests in subprocesses. It's great, but we could do the same thing using testtools RunTest mechanism, so that tests would be written as::

  class TestFoo(TestCase):
    run_tests_with = ZopeSubProcessRunner

Rather than::

  class TestFoo(ZopeTestInSubProcess, TestCase):

The main advantage to this would be that we could attach the stdout and stderr of the child process to the main test case and have it appear in test failures, which would be handy for debugging.

Related branches

Revision history for this message
Colin Watson (cjwatson) wrote :

I hadn't seen this bug at the time, but I fixed this last year in https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/387645.

Changed in launchpad:
status: Triaged → Fix Released
assignee: nobody → Colin Watson (cjwatson)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.