Skip to content

python-tap/nose-tap

Repository files navigation

nose-tap

PyPI version BSD license Linux status OS X status Windows status Coverage

Test Anything Protocol (TAP) reporting plugin for nose

The plugin outputs test results as TAP data in a variety of formats. See the tappy documentation for more information on usage.

Install

$ pip install nose-tap

Usage

This is an example usage from the plugin's test suite.

$ nosetests --with-tap --tap-stream
# TAP results for TestPlugin
ok 1 - test_adds_error (nose_tap.tests.test_plugin.TestPlugin)
ok 2 - test_adds_failure (nose_tap.tests.test_plugin.TestPlugin)
ok 3 - test_adds_skip (nose_tap.tests.test_plugin.TestPlugin)
ok 4 - test_adds_success (nose_tap.tests.test_plugin.TestPlugin)
ok 5 - A bad format string exits the runner.
ok 6 - test_dummy_stream_does_nothing (nose_tap.tests.test_plugin.TestPlugin)
ok 7 - test_finalize_generates_reports (nose_tap.tests.test_plugin.TestPlugin)
ok 8 - When the test is actually a ContextSuite, get the name from context.
ok 9 - test_non_streaming_passes_stream_through (nose_tap.tests.test_plugin.TestPlugin)
ok 10 - test_parser_adds_options (nose_tap.tests.test_plugin.TestPlugin)
ok 11 - test_streaming_option_captures_stream (nose_tap.tests.test_plugin.TestPlugin)
ok 12 - test_streaming_options_returns_dummy_stream (nose_tap.tests.test_plugin.TestPlugin)
1..12