| CARVIEW |
Select Language
HTTP/1.1 200 OK
Connection: keep-alive
Server: nginx/1.24.0 (Ubuntu)
Content-Type: text/html; charset=utf-8
Cache-Control: public, max-age=300
Content-Encoding: gzip
Via: 1.1 varnish, 1.1 varnish
Accept-Ranges: bytes
Age: 0
Date: Fri, 16 Jan 2026 21:26:10 GMT
X-Served-By: cache-dfw-kdal2120026-DFW, cache-bom-vanm7210023-BOM
X-Cache: MISS, MISS
X-Cache-Hits: 0, 0
X-Timer: S1768598770.872415,VS0,VE774
Vary: Accept, Accept-Encoding
transfer-encoding: chunked
hpc-lcov: Convert HPC output into LCOV format
hpc-lcov: Convert HPC output into LCOV format
Downloads
- hpc-lcov-1.2.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
| Versions [RSS] | 1.0.0, 1.0.1, 1.1.0, 1.1.1, 1.1.2, 1.2.0 |
|---|---|
| Change log | CHANGELOG.md |
| Dependencies | aeson, base (<5), containers, hpc (<0.8), hpc-lcov, optparse-applicative, path, path-io, process, text, unordered-containers, yaml [details] |
| License | BSD-3-Clause |
| Author | Brandon Chinn <brandonchinn178@gmail.com> |
| Maintainer | Brandon Chinn <brandonchinn178@gmail.com> |
| Uploaded | by brandonchinn178 at 2024-12-21T01:03:22Z |
| Category | Control |
| Home page | https://github.com/brandonchinn178/hpc-lcov#readme |
| Bug tracker | https://github.com/brandonchinn178/hpc-lcov/issues |
| Source repo | head: git clone https://github.com/brandonchinn178/hpc-lcov |
| Distributions | LTSHaskell:1.2.0, NixOS:1.2.0, Stackage:1.2.0 |
| Executables | hpc-lcov |
| Downloads | 1382 total (17 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating |
|
| Status | Docs not available [build log] All reported builds failed as of 2024-12-21 [all 2 reports] |
Readme for hpc-lcov-1.2.0
[back to package description]hpc-lcov
Convert HPC output into lcov.info files that can be uploaded to coverage
services, like Codecov.
Quickstart
- Download
hpc-lcovfrom the releases page or install it from Hackage with your favorite package manager - Run your tests with coverage enabled
stack test --coverage- Cabal is not yet supported (https://github.com/brandonchinn178/hpc-lcov/issues/3)
- Run
hpc-lcov - Upload the generated
lcov.infofile to your coverage service
FAQs
How do I convert coverage for an executable?
Note: If you have both tests and executables, HPC will write module information to the same file. Because of this, you'll have to load the coverage for each separately, with a stack clean in between.
- Build a single executable with coverage enabled (e.g.
stack build :my-exe --coverage) - Run the executable
- This should generate a
.tixfile in the current directory - Run the following, specifying the package that builds the executable:
stack exec -- hpc-lcov --file my-exe.tix --main-package my-package
How do I merge coverage files?
-
Install LCOV (e.g.
brew install lcov) -
Run
lcov -a lcov1.info -a lcov2.info ... > lcov.info