Repository navigation
Move pyTooling's testcases of DependencyTable and Shields - #5
Conversation
Unchanged from pyTooling's tests/unit/Documentation.py (dev d75c9990) apart from the import paths and the dropped Python 3.11 guard - pyTooling.Sphinx starts at Python 3.12. Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
The sentence a name spelled out is the doc-string now, where a testcase had none. Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
Not up to standards ⛔🔴 Issues
|
| Category | Results |
|---|---|
| Documentation | 7 minor |
🟢 Metrics 87 complexity · 0 duplication
Metric Results Complexity 87 Duplication 0
🟢 Coverage ∅ diff coverage · +16.97% coverage variation
Metric Results Coverage variation ✅ +16.97% coverage variation (-1.00%) Diff coverage ✅ ∅ diff coverage Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (f1a80f9) 1137 462 40.63% Head commit (5971ead) 1137 (+0) 655 (+193) 57.61% (+16.97%) Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch:
<coverage of head commit> - <coverage of common ancestor commit>Diff coverage details
Coverable lines Covered lines Diff coverage Pull request (#5) 0 0 ∅ (not applicable) Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified:
<covered lines added or modified>/<coverable lines added or modified> * 100%
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #5 +/- ##
===========================================
+ Coverage 39.75% 56.90% +17.15%
===========================================
Files 7 7
Lines 1137 1137
Branches 188 188
===========================================
+ Hits 452 647 +195
+ Misses 675 482 -193
+ Partials 10 8 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
Moves pyTooling's testcases of this extension, which #2 left behind - its description wrongly said there were none.
Unit Tests
tests/unit/DependencyTable.py(37 testcases): the entrypointsreadEntrypoints()reads fromconf.py- files, includes, symbolic links, packages with and without extras, the singular and plural fields and every rejected declaration -, the version constraints and formatsDependencyTableprints, the dependency formats, and the report of unresolved licenses.tests/unit/Shields.py(33 testcases): the directive's options (GitHub slug, links, source and documentation licenses as SPDX expressions, workflow, documentation URL), its content (rows, unknown badges, missing options), and the badge table (every badge formats its URLs, LaTeX gets the raster badge, identifiers, alternative texts,Shield's parameter checks).tests/unit/Documentation.py(dev d75c9990) unchanged apart from the import paths and the dropped Python 3.11 guard - pyTooling.Sphinx starts at Python 3.12.test_<Feature>[_<Variant>]; the sentence a name spelled out became its doc-string where it had none. Nothing else changes.tests/unit: 97 passed, 89 subtests.Others
SplittingandSummaryLength(testingpyTooling.Documentation, not this extension). The schema-graph classes came with Build the schema graph on pyTooling.Graph.GraphViz #4; theghadomain's tests went to pyTooling.GitHub.Related Issues and Pull-Requests