test-results

This directive adds a results table of a given junit xml file to the current page.

.. test-results:: my/path/to/test.xml

unknown

Tests: 3, Failures: -1, Errors: -1, Skips: -1

Time: -1.0

class

name

status

reason

foo1

ASuccessfulTest

passed

foo2

AnotherSuccessfulTest

passed

foo3

AFailingTest

failure

details about failure

pytest

Tests: 10, Failures: 0, Errors: 0, Skips: 10

Time: 0.054

class

name

status

reason

setup

FLAKE8

skipped

file(s) previously passed FLAKE8 checks /home/daniel/workspace/sphinx/sphinx-test-reports/.tox/py27-sphinx15/local/lib/python2.7/site-packages/pytest_flake8.py:106: <py._xmlgen.raw object at 0x7fd5a8a0e950>

docs.conf

FLAKE8

skipped

file(s) previously passed FLAKE8 checks /home/daniel/workspace/sphinx/sphinx-test-reports/.tox/py27-sphinx15/local/lib/python2.7/site-packages/pytest_flake8.py:106: <py._xmlgen.raw object at 0x7fd5a8a0ea10>

sphinxcontrib.__init__

FLAKE8

skipped

file(s) previously passed FLAKE8 checks /home/daniel/workspace/sphinx/sphinx-test-reports/.tox/py27-sphinx15/local/lib/python2.7/site-packages/pytest_flake8.py:106: <py._xmlgen.raw object at 0x7fd5a8497450>

sphinxcontrib.test_reports.__init__

FLAKE8

skipped

file(s) previously passed FLAKE8 checks /home/daniel/workspace/sphinx/sphinx-test-reports/.tox/py27-sphinx15/local/lib/python2.7/site-packages/pytest_flake8.py:106: <py._xmlgen.raw object at 0x7fd5a8497c10>

sphinxcontrib.test_reports.junitparser

FLAKE8

skipped

file(s) previously passed FLAKE8 checks /home/daniel/workspace/sphinx/sphinx-test-reports/.tox/py27-sphinx15/local/lib/python2.7/site-packages/pytest_flake8.py:106: <py._xmlgen.raw object at 0x7fd5a84a2350>

sphinxcontrib.test_reports.test_reports

FLAKE8

skipped

file(s) previously passed FLAKE8 checks /home/daniel/workspace/sphinx/sphinx-test-reports/.tox/py27-sphinx15/local/lib/python2.7/site-packages/pytest_flake8.py:106: <py._xmlgen.raw object at 0x7fd5a84a2a50>

sphinxcontrib.test_reports.directives.__init__

FLAKE8

skipped

file(s) previously passed FLAKE8 checks /home/daniel/workspace/sphinx/sphinx-test-reports/.tox/py27-sphinx15/local/lib/python2.7/site-packages/pytest_flake8.py:106: <py._xmlgen.raw object at 0x7fd5a84a2cd0>

sphinxcontrib.test_reports.directives.test_env

FLAKE8

skipped

file(s) previously passed FLAKE8 checks /home/daniel/workspace/sphinx/sphinx-test-reports/.tox/py27-sphinx15/local/lib/python2.7/site-packages/pytest_flake8.py:106: <py._xmlgen.raw object at 0x7fd5a84ae250>

sphinxcontrib.test_reports.directives.test_report

FLAKE8

skipped

file(s) previously passed FLAKE8 checks /home/daniel/workspace/sphinx/sphinx-test-reports/.tox/py27-sphinx15/local/lib/python2.7/site-packages/pytest_flake8.py:106: <py._xmlgen.raw object at 0x7fd5a84ae950>

sphinxcontrib.test_reports.directives.test_results

FLAKE8

skipped

file(s) previously passed FLAKE8 checks /home/daniel/workspace/sphinx/sphinx-test-reports/.tox/py27-sphinx15/local/lib/python2.7/site-packages/pytest_flake8.py:106: <py._xmlgen.raw object at 0x7fd5a84bf090>

nosetests

Tests: 5, Failures: 0, Errors: 0, Skips: 0

Time: -1.0

class

name

status

reason

test_basic_doc

test_doc_build_html

passed

test_dummy

test_dummy

passed

test_empty_doc

test_doc_build_html

passed

test_junit_parser

test_init_parser

passed

test_junit_parser

test_xml_object

passed

Note

Each test framework, like pytest or nosetest, generates a little different junit-xml file with more or less data. If a specific data is not available in the given xml-file, sphinx-test-reports fills the information with unknown for strings or -1 for numbers.