Comment 9 for bug 880207

Revision history for this message
Jonathan Ballet (multani) wrote : Re: [Bug 880207] Re: Report skipped tests

I haven't touched this patch since October 2011.
It should be first updated so that it applies cleanly on the latest
zope.testrunner on Github and then ensure it works in the following
cases:

* Python 2.6 without unittest2
* Python 2.6 with unittest2
* Python 2.7/3.1/3.1+ without unittest2
* Python 2.7/3.1/3.1+ with unittest2 (but unittest2 should not be used,
  since it has been merged in Python 2.7 and 3.1)

Support for Python < 2.6 has been dropped so it should be slightly
easier to test. zope.testrunner is also now using tox, which should also
make things easier.

I don't recall exactly what I was meaning in
https://bugs.launchpad.net/zope.testrunner/+bug/880207/comments/7 but it
seems there was some kind of problem running Python 2.6 (or 2.5, but
it's not a problem anymore now) with the unittest2 module.

If you give me a few days, I can give it a look and try to get this
merged upstream.

On Tue, May 07, 2013 at 07:05:07AM -0000, Wolfgang Schnerring wrote:
> I'd be very interested to get zope.testrunner to report skips. So, what
> is the status here? What needs to be decided, what needs to be done to
> move forward? Is there anything I can do to help?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/880207
>
> Title:
> Report skipped tests
>
> Status in zope.testrunner:
> Opinion
>
> Bug description:
> Since Python 2.7, Python 3.1 and when using the unittest2 package,
> developers can specify that some tests must be skipped and not
> launched by the test runner.
>
> I made a preliminary patch which adds support in zope.testrunner to
> report skipped tests. The code should work even if the underlying
> unittest library doesn't support the "skip" feature.
>
> It breaks the API of the formatters, because I need to specify the
> number of skipped tests in the summary line and I added a method to
> report when one test is being skipped.
>
> I didn't updated the tests of zope.testrunner itself, because I would
> like to have an early feedback on the implementation:
>
> * is it OK to break the API of the formatters?
> * is it OK to break the format of the defaut text outputs, since it now always add the number of skipped tests?
>
> If it seems good for the maintainer and they are willing to accept the
> patch, I'll update it with the fix for the zope.testrunner tests
> themselves.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/zope.testrunner/+bug/880207/+subscriptions