nose-devs/nose — Issue #471: Allow plugins to define error types (eg, Skip, TODO)
Author: jpellerin
Created: 2011-12-14 16:12:13+00:00
State: closed

It's currently impossible to have a plugin that defines a different type of
error class (like skips or todos or failures) -- plugins have access to
tests, but not to the result, at least not until finalize().

A plugin should be able to easily register a new error class, with a name
(used in printErrors), a set of exceptions that fall under the class, and
possibly a callback to call whenever a matching exception is caught in
addError.

Something like:

def registerErrorClass(self, name, *exceptions, callback=None)

Plugins should also be able to replace or wrap the result:

def prepareResult(self, result)

before any tests are run.

Google Code Info:
Issue #: 44
Author: jpelle...@gmail.com
Created On: 2007-03-24T05:15:22.000Z
Closed On: 2007-06-05T01:55:46.000Z