Skip to content

Commit

Permalink
Some fine tuning.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paebbels committed Jan 11, 2024
1 parent 810c0a8 commit 777902f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion doc/DocCov/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ bar.
sphinx_reports/sphinx_reports
Unittest Report ➚ <unittests/index>
Code Coverage Report ➚ <coverage/index>
coverage/index
Doc. Coverage Report <DocCoverage>
Static Type Check Report ➚ <typing/index>
Expand Down
6 changes: 3 additions & 3 deletions doc/coverage/index.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Coverage Report
###############
Code Coverage Report
####################

*Placeholder for the Coverage report generated with* ``pytest`` *and* ``coverage``.
Code coverage report generated with ``pytest`` *and* ``coverage.py``.

.. report:code-coverage::
:packageid: src
2 changes: 1 addition & 1 deletion doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ License

Python Class Reference <sphinx_reports/sphinx_reports>
Unittest Report ➚ <unittests/index>
Code Coverage Report ➚ <coverage/index>
coverage/index
Doc. Coverage Report <DocCoverage>
Static Type Check Report ➚ <typing/index>

Expand Down
2 changes: 1 addition & 1 deletion sphinx_reports/Adapter/Coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def Convert(self):
coverageStatus = Numbers(*(int(i) for i in statusRecord["index"]["nums"]))

moduleName = moduleFile.stem
modulePath = [p.name for p in moduleFile.parents if p.name != ""][1:]
modulePath = moduleFile.parent.parts[1:]

currentCoverageObject: AggregatedCoverage = rootPackageCoverage
for packageName in modulePath:
Expand Down
2 changes: 1 addition & 1 deletion sphinx_reports/Adapter/DocStrCoverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def Convert(self) -> PackageCoverage:
perFileResult: FileCount = value.count_aggregate()

moduleName = path.stem
modulePath = [p.name for p in path.parents if p.name != ""]
modulePath = path.parent.parts

currentCoverageObject: AggregatedCoverage = rootPackageCoverage
for packageName in modulePath:
Expand Down
1 change: 1 addition & 0 deletions sphinx_reports/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ class ReportDomain(Domain):
All configuration variables in :file:`conf.py` are prefixed with ``report_*``:
* ``report_codecov_packages``
* ``report_doccov_packages``
"""
Expand Down

0 comments on commit 777902f

Please sign in to comment.