Examples¶
Importing¶
pytests¶
pytest junit file¶
<testsuite errors="0" failures="0" name="pytest" skips="10" tests="10" time="0.054">
<testcase classname="setup" file="setup.py" line="-1" name="FLAKE8" time="0.000252246856689">
<skipped message="file(s) previously passed FLAKE8 checks" type="pytest.skip">
/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>
</skipped>
</testcase>
<testcase classname="docs.conf" file="docs/conf.py" line="-1" name="FLAKE8" time="0.000167846679688">
<skipped message="file(s) previously passed FLAKE8 checks" type="pytest.skip">
/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>
</skipped>
</testcase>
<testcase classname="sphinxcontrib.__init__" file="sphinxcontrib/__init__.py" line="-1" name="FLAKE8" time="0.000164031982422">
<skipped message="file(s) previously passed FLAKE8 checks" type="pytest.skip">
/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>
</skipped>
</testcase>
<testcase classname="sphinxcontrib.test_reports.__init__" file="sphinxcontrib/test_reports/__init__.py" line="-1" name="FLAKE8" time="0.000192880630493">
<skipped message="file(s) previously passed FLAKE8 checks" type="pytest.skip">
/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>
</skipped>
</testcase>
<testcase classname="sphinxcontrib.test_reports.junitparser" file="sphinxcontrib/test_reports/junitparser.py" line="-1" name="FLAKE8" time="0.00017786026001">
<skipped message="file(s) previously passed FLAKE8 checks" type="pytest.skip">
/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>
</skipped>
</testcase>
<testcase classname="sphinxcontrib.test_reports.test_reports" file="sphinxcontrib/test_reports/test_reports.py" line="-1" name="FLAKE8" time="0.000218152999878">
<skipped message="file(s) previously passed FLAKE8 checks" type="pytest.skip">
/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>
</skipped>
</testcase>
<testcase classname="sphinxcontrib.test_reports.directives.__init__" file="sphinxcontrib/test_reports/directives/__init__.py" line="-1" name="FLAKE8" time="0.000204801559448">
<skipped message="file(s) previously passed FLAKE8 checks" type="pytest.skip">
/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>
</skipped>
</testcase>
<testcase classname="sphinxcontrib.test_reports.directives.test_env" file="sphinxcontrib/test_reports/directives/test_env.py" line="-1" name="FLAKE8" time="0.000218868255615">
<skipped message="file(s) previously passed FLAKE8 checks" type="pytest.skip">
/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>
</skipped>
</testcase>
<testcase classname="sphinxcontrib.test_reports.directives.test_report" file="sphinxcontrib/test_reports/directives/test_report.py" line="-1" name="FLAKE8" time="0.000199317932129">
<skipped message="file(s) previously passed FLAKE8 checks" type="pytest.skip">
/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>
</skipped>
</testcase>
<testcase classname="sphinxcontrib.test_reports.directives.test_results" file="sphinxcontrib/test_reports/directives/test_results.py" line="-1" name="FLAKE8" time="0.00019097328186">
<skipped message="file(s) previously passed FLAKE8 checks" type="pytest.skip">
/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>
</skipped>
</testcase>
</testsuite>
Autogenerated documentation¶
.. test-file:: Pytest Test File
:id: PYTEST01
:tags: pytest, example
:file: ../tests/doc_test/utils/pytest_data.xml
:auto_suites:
:auto_cases:
Text: /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>
Message: file(s) previously passed FLAKE8 checks
|
Text: /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>
Message: file(s) previously passed FLAKE8 checks
|
Text: /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>
Message: file(s) previously passed FLAKE8 checks
|
Text: /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>
Message: file(s) previously passed FLAKE8 checks
|
Text: /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>
Message: file(s) previously passed FLAKE8 checks
|
Text: /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>
Message: file(s) previously passed FLAKE8 checks
|
Text: /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>
Message: file(s) previously passed FLAKE8 checks
|
Text: /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>
Message: file(s) previously passed FLAKE8 checks
|
Text: /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>
Message: file(s) previously passed FLAKE8 checks
|
Text: /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>
Message: file(s) previously passed FLAKE8 checks
|
nosetests¶
nosetests junit file¶
<testsuite name="nosetests" tests="5" errors="0" failures="0" skip="0">
<testcase classname="test_basic_doc" name="test_doc_build_html" time="0.283"/>
<testcase classname="test_dummy" name="test_dummy" time="0.000"/>
<testcase classname="test_empty_doc" name="test_doc_build_html" time="0.108"/>
<testcase classname="test_junit_parser" name="test_init_parser" time="0.001"/>
<testcase classname="test_junit_parser" name="test_xml_object" time="0.001"/>
</testsuite>
Autogenerated documentation¶
.. test-file:: Nosetests Test File
:id: NOSE01
:tags: nose, example
:file: ../tests/doc_test/utils/nose_data.xml
:auto_suites:
:auto_cases:
Filtering¶
Tables¶
Must be defined on this page¶
This checks if the filtered needs (test-files, test-suites, test-cases) got defined inside a section called “Importing”.
.. needtable::
:filter: 'Importing' in sections
:columns: id, title, result, time, tags
ID |
Title |
Result |
Time |
Tags |
---|---|---|---|---|
Nosetests Test File |
nose; example |
|||
nosetests |
nose; example |
|||
test_xml_object |
passed |
0.001 |
nose; example |
|
test_dummy |
passed |
0.0 |
nose; example |
|
test_doc_build_html |
passed |
0.283 |
nose; example |
|
test_doc_build_html |
passed |
0.108 |
nose; example |
|
test_init_parser |
passed |
0.001 |
nose; example |
|
Pytest Test File |
pytest; example |
|||
pytest |
pytest; example |
|||
FLAKE8 |
skipped |
0.000204801559448 |
pytest; example |
|
FLAKE8 |
skipped |
0.000192880630493 |
pytest; example |
|
FLAKE8 |
skipped |
0.00017786026001 |
pytest; example |
|
FLAKE8 |
skipped |
0.000218152999878 |
pytest; example |
|
FLAKE8 |
skipped |
0.000164031982422 |
pytest; example |
|
FLAKE8 |
skipped |
0.000199317932129 |
pytest; example |
|
FLAKE8 |
skipped |
0.000167846679688 |
pytest; example |
|
FLAKE8 |
skipped |
0.000218868255615 |
pytest; example |
|
FLAKE8 |
skipped |
0.000252246856689 |
pytest; example |
|
FLAKE8 |
skipped |
0.00019097328186 |
pytest; example |
Flows¶
All test-files and suites¶
This shows all testfiles and testsuites, which are defined somewhere in the overall documentation.
Please note to search for testfile
and testsuite
(no “-” ), as this are the names of the need-objects
Sphinx-Test-Reports creates when using the directives test-file
or test-suite
.
.. needflow::
:types: testfile, testsuite
:filter: 'Examples' in sections