Skip to content

python-tap/pytest-tap

pytest-tap

PyPI version BSD license Coverage

Test Anything Protocol (TAP) reporting plugin for pytest

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 pytest-tap

Usage

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

$ pytest --tap
1..12
ok 1 tests/test_help.py::test_includes_options
ok 2 tests/test_help.py::test_handle_help_with_stream
ok 3 tests/test_plugin.py::test_stream
ok 4 tests/test_plugin.py::test_stream_simple_flag
ok 5 tests/test_plugin.py::test_combined
ok 6 tests/test_plugin.py::test_files
ok 7 tests/test_plugin.py::test_outdir
ok 8 tests/test_plugin.py::test_xfail_no_reason
ok 9 tests/test_plugin.py::test_xfail_nonstrict
ok 10 tests/test_plugin.py::test_xfail_strict
ok 11 tests/test_plugin.py::test_unittest_expected_failure
ok 12 tests/test_plugin.py::test_setup_failure

Contributing

The project welcomes contributions of all kinds. Check out the contributing guidelines for tips on how to get started.

About

Test Anything Protocol (TAP) reporting plugin for pytest

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages