Help identify gaps in code coverage.
Project description
# Spackle
Spackle sorts your Coverage.py result report, so you can identify gaps in test coverage faster.
## Usage
Simply run `spackle` after executing Coverage.py's run command, instead of running `coverage report -m`. Spackle will output the original coverage report and a new report that contains only multi line gaps in coverage, sorted by the amount of lines missing.
## Example
Example usage:
```
coverage run ./manage.py test demo
spackle
```
Example output (shortened):
```
Name Stmts Miss Cover Missing
--------------------------------------------------------------------
demo/querysets.py 63 27 57% 16, 19, 53, 56-57, 64-101
demo/views.py 106 84 21% 18-39, 45-46, 55-92, 103-134, 143-153, 162-185
demo/utils/github.py 48 24 50% 10-49
demo/utils/graphs.py 100 27 73% 41, 63-64, 68-73, 156-196
--------------------------------------------------------------------
TOTAL 317 162 86%
Largest gaps in coverage:
Name Missing Miss
--------------------------------------------------------------------
demo/utils/graphs.py 156-196 40
demo/utils/github.py 10-49 39
demo/querysets.py 64-101 37
demo/views.py 55-92 37
demo/views.py 103-134 31
demo/views.py 162-185 23
demo/views.py 18-39 21
demo/views.py 143-153 10
demo/utils/graphs.py 68-73 5
demo/views.py 45-46 1
demo/utils/graphs.py 63-64 1
demo/querysets.py 56-57 1
```
Spackle sorts your Coverage.py result report, so you can identify gaps in test coverage faster.
## Usage
Simply run `spackle` after executing Coverage.py's run command, instead of running `coverage report -m`. Spackle will output the original coverage report and a new report that contains only multi line gaps in coverage, sorted by the amount of lines missing.
## Example
Example usage:
```
coverage run ./manage.py test demo
spackle
```
Example output (shortened):
```
Name Stmts Miss Cover Missing
--------------------------------------------------------------------
demo/querysets.py 63 27 57% 16, 19, 53, 56-57, 64-101
demo/views.py 106 84 21% 18-39, 45-46, 55-92, 103-134, 143-153, 162-185
demo/utils/github.py 48 24 50% 10-49
demo/utils/graphs.py 100 27 73% 41, 63-64, 68-73, 156-196
--------------------------------------------------------------------
TOTAL 317 162 86%
Largest gaps in coverage:
Name Missing Miss
--------------------------------------------------------------------
demo/utils/graphs.py 156-196 40
demo/utils/github.py 10-49 39
demo/querysets.py 64-101 37
demo/views.py 55-92 37
demo/views.py 103-134 31
demo/views.py 162-185 23
demo/views.py 18-39 21
demo/views.py 143-153 10
demo/utils/graphs.py 68-73 5
demo/views.py 45-46 1
demo/utils/graphs.py 63-64 1
demo/querysets.py 56-57 1
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
spackle-0.0.1.tar.gz
(2.5 kB
view details)
File details
Details for the file spackle-0.0.1.tar.gz
.
File metadata
- Download URL: spackle-0.0.1.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d37d58a2621b65ba9634c2223b16dd39de3ab5ec9eec559efe7c97054217a81 |
|
MD5 | c0213283dd75576d5bcceeee8522e4a8 |
|
BLAKE2b-256 | 0af7904d8170d205d0299955ad4a737f6710c428f80b8811948be0aa0aa94aee |