Failure Detail: introspect asserts

This plugin provides assert introspection. When the plugin is enabled and a test failure occurs, the traceback is displayed with extra context around the line in which the exception was raised. Simple variable substitution is also performed in the context output to provide more debugging information.

Options

-d, --detailed-errors, --failure-detail

Add detail to error output by attempting to evaluate failed asserts [NOSE_DETAILED_ERRORS]

Plugin

class nose.plugins.failuredetail.FailureDetail

Bases: nose.plugins.base.Plugin

Plugin that provides extra information in tracebacks of test failures.

configure(options, conf)

Configure plugin.

formatFailure(test, err)

Add detail from traceback inspection to error message of a failure.

options(parser, env)

Register commmandline options.

Source

Table Of Contents

Previous topic

Doctests: run doctests with nose

Next topic

Isolate: protect tests from (some) side-effects

This Page