'tox -e cover' fails to generate coverage reports
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kuryr |
Fix Released
|
High
|
Antoni Segura Puimedon | ||
kuryr-libnetwork |
Fix Released
|
Undecided
|
Liping Mao |
Bug Description
Due to having the pypi package name kuryr-lib but the source package name kuryr.lib, testr gets the wrong package name for 'coverage run' which results in messages of
kuryr-lib was never imported
Reproduction steps:
1. tox -e cover
Expected result:
cover runtests: commands[1] | coverage report
Name Stmts Miss Branch BrPart Cover
---
kuryr/
kuryr/
kuryr/
kuryr/
kuryr/
kuryr/
kuryr/
kuryr/
kuryr/
kuryr/
kuryr/
---
TOTAL 236 31 43 6 82%
Actual result:
Coverage.py warning: Module kuryr-lib was never imported.
Coverage.py warning: No data was collected.
Coverage.py warning: Module kuryr-lib was never imported.
Coverage.py warning: No data was collected.
Coverage.py warning: Module kuryr-lib was never imported.
Coverage.py warning: No data was collected.
Coverage.py warning: Module kuryr-lib was never imported.
Coverage.py warning: No data was collected.
Ran 16 tests in 0.159s (-0.008s)
PASSED (id=105)
No data to report.
cover runtests: commands[1] | coverage report
Name Stmts Miss Branch BrPart Cover
---
No data to report.
ERROR: InvocationError: '/home/
Changed in kuryr: | |
importance: | Undecided → High |
assignee: | nobody → Antoni Segura Puimedon (celebdor) |
status: | New → Triaged |
Changed in kuryr-libnetwork: | |
status: | New → In Progress |
Fix proposed to branch: master /review. openstack. org/379305
Review: https:/