Skip to main content

Spackle

Spackle sorts your Coverage.py result report, so you can identify gaps in test coverage faster.

Install

pip install spackle

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

Release files for spackle 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spackle 0.0.3
File Size Uploaded
spackle-0.0.3.tar.gz 2.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for spackle 0.0.3
File Interpreter ABI Platform
spackle-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 6.9 kB

Release files / spackle-0.0.3.tar.gz

Download URL spackle-0.0.3.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c3a70d9e93bd9e3f6250c4e7d58664a6bc49afb7d98751f6ce97d16c959961e0
BLAKE2b-256 checksum
How to use checksums
6fe39355243cb94e06175f825bbfc6a6bdf86e698b40092942cdc3edd8d67dd1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.1

Release files / spackle-0.0.3-py3-none-any.whl

Download URL spackle-0.0.3-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2e43cb173102ff984e5d94c59a283ec8c26b469e6058b7e75e4ce82c6cc73aad
BLAKE2b-256 checksum
How to use checksums
0a276ef6bf35ea585108494c239a7365d30aa435a917bcf86ff42d55c997eafc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.1

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page