Merge ~cjwatson/lazr.restful:coverage into lazr.restful:main
Proposed by
Colin Watson
Status: | Merged |
---|---|
Merged at revision: | 5b51fbd1cac70f7cd0acfc445fcf70ee6a95c50a |
Proposed branch: | ~cjwatson/lazr.restful:coverage |
Merge into: | lazr.restful:main |
Diff against target: |
52 lines (+19/-0) 2 files modified
.gitignore (+2/-0) tox.ini (+17/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jürgen Gmach | Approve | ||
Review via email: mp+414029@code.launchpad.net |
Commit message
Add coverage testing
To post a comment you must log in.
Thanks a lot! Not sure what bit I was missing.
Coverage is and remains magic :-)
The current output looks like...
``` lib/python3. 8/site- packages/ lazr/restful/ tests/test_ etag.py 118 9 92% 47, 52-56, 64-67, 74-89, 100-120 lib/python3. 8/site- packages/ lazr/restful/ tests/test_ navigation. py 69 1 99% 58 lib/python3. 8/site- packages/ lazr/restful/ tests/test_ utils.py 116 0 100% lib/python3. 8/site- packages/ lazr/restful/ tests/test_ webservice. py 525 5 99% 119, 873, 1011, 1032, 1061 lib/python3. 8/site- packages/ lazr/restful/ utils.py 193 6 97% 152, 306, 402, 451-459 lib/python3. 8/site- packages/ lazr/restful/ wsgi.py 36 18 50% 32-33, 36-50, 57-61, 66-67 ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- - _______ _______ _______ _______ _______ _______ _______ _______ _______ _______ _____ summary _______ _______ _______ _______ _______ _______ _______ _______ _______ _______ _______ ______
.tox/coverage/
.tox/coverage/
.tox/coverage/
.tox/coverage/
.tox/coverage/
.tox/coverage/
-------
TOTAL 6636 434 93%
_______
coverage: commands succeeded
congratulations :)
```
Usually, you would add a `[coverage:paths]` section, and add something like...
``` */site- packages
[coverage:paths]
source =
src
.tox/
```
and then you'd get a nicer output (ie src/lazr/ restful/ .../test_ function. py ...), but for reasons unknown it does not work here, at least for me.