sphinx-reports Documentation — sphinx_reports 0.9.4 documentation (original) (raw)


The Sphinx extension sphinx_reports offers a set of directives to integrate reports and summaries into the documentation generated by Sphinx.

Supported Report Formats

Supported format reports are:

Unit Test Summary

Unittesting executes isolated tests on tiny source code portions (units). The results are collected in a unittest summary report usually in the Any JUnit XML format (or a related dialect). These test results can be visualized as a hierarchy of groups (testsuites) and tests (testcases).

Configuration Options

Styling via CSS

Planned features

Unittest Summary Report

_images/Unittest.png

Code Coverage

Code Coverage Report checks if a source code (lines, statements, branches, …) were used during execution. Usually, testcases are run by a testcase execution framework like pytest, which also offers to instrument the source code for code coverage collection using the pytest-cov plugin. For Python, code coverage collection is usually based on Coverage.py, which supports statement and branch coverage collection.

Configuration Options

Styling via CSS

Planned features

Code Coverage Summary Report

_images/CodeCoverage.png

Documentation coverage

Documentation Coverage Report counts how many publicly accessible members are documented using a Python doc-string. Based on the count of possibly documented public members and the actual number of non-empty doc-strings, a percentage of documentation coverage can be computed.

Configuration Options

Styling via CSS

Planned features

Documentation Coverage Summary Report

_images/DocCoverage.png

Dependencies

🚧 This is a planned feature. 🚧

Contributors

License

This Python package (source code) is licensed under Apache License 2.0.
The accompanying documentation is licensed under Creative Commons - Attribution 4.0 (CC-BY 4.0).