{"id":16661841,"url":"https://github.com/brandonchinn178/hpc-lcov","last_synced_at":"2025-08-23T05:33:52.553Z","repository":{"id":37836335,"uuid":"240146180","full_name":"brandonchinn178/hpc-lcov","owner":"brandonchinn178","description":"Convert HPC coverage output to LCOV format","archived":false,"fork":false,"pushed_at":"2024-12-21T01:03:12.000Z","size":134,"stargazers_count":6,"open_issues_count":6,"forks_count":2,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-08-15T23:13:15.443Z","etag":null,"topics":["codecov","coverage","haskell","test"],"latest_commit_sha":null,"homepage":"http://hackage.haskell.org/package/hpc-lcov","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brandonchinn178.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-02-13T00:45:03.000Z","updated_at":"2024-12-21T00:31:39.000Z","dependencies_parsed_at":"2023-12-26T17:53:30.418Z","dependency_job_id":null,"html_url":"https://github.com/brandonchinn178/hpc-lcov","commit_stats":null,"previous_names":["LeapYear/hpc-lcov","leapyear/hpc-lcov"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/brandonchinn178/hpc-lcov","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonchinn178%2Fhpc-lcov","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonchinn178%2Fhpc-lcov/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonchinn178%2Fhpc-lcov/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonchinn178%2Fhpc-lcov/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brandonchinn178","download_url":"https://codeload.github.com/brandonchinn178/hpc-lcov/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonchinn178%2Fhpc-lcov/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271745598,"owners_count":24813509,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codecov","coverage","haskell","test"],"created_at":"2024-10-12T10:36:16.367Z","updated_at":"2025-08-23T05:33:52.512Z","avatar_url":"https://github.com/brandonchinn178.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hpc-lcov\n\n[![GitHub Actions](https://img.shields.io/github/actions/workflow/status/brandonchinn178/hpc-lcov/ci.yml?branch=main)](https://github.com/brandonchinn178/hpc-lcov/actions?query=branch%3Amain)\n[![codecov](https://codecov.io/gh/brandonchinn178/hpc-lcov/branch/main/graph/badge.svg?token=8TErU2ntw9)](https://codecov.io/gh/brandonchinn178/hpc-lcov)\n[![Hackage](https://img.shields.io/hackage/v/hpc-lcov)](https://hackage.haskell.org/package/hpc-lcov)\n\nConvert HPC output into `lcov.info` files that can be uploaded to coverage\nservices, like [Codecov](https://codecov.io).\n\n## Quickstart\n\n1. Download `hpc-lcov` from the releases page or install it from Hackage with your favorite package manager\n1. Run your tests with coverage enabled\n    * `stack test --coverage`\n    * Cabal is not yet supported (https://github.com/brandonchinn178/hpc-lcov/issues/3)\n1. Run `hpc-lcov`\n1. Upload the generated `lcov.info` file to your coverage service\n\n## FAQs\n\n### How do I convert coverage for an executable?\n\nNote: 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.\n\n1. Build a single executable with coverage enabled (e.g. `stack build :my-exe --coverage`)\n1. Run the executable\n1. This should generate a `.tix` file in the current directory\n1. Run the following, specifying the package that builds the executable:\n    ```bash\n    stack exec -- hpc-lcov --file my-exe.tix --main-package my-package\n    ```\n\n### How do I merge coverage files?\n\n1. Install LCOV (e.g. `brew install lcov`)\n1. Run\n\n    ```bash\n    lcov -a lcov1.info -a lcov2.info ... \u003e lcov.info\n    ```\n\n## Resources\n\n* [LCOV format description](http://ltp.sourceforge.net/coverage/lcov/geninfo.1.php)\n* [More info on HPC](https://wiki.haskell.org/Haskell_program_coverage)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrandonchinn178%2Fhpc-lcov","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrandonchinn178%2Fhpc-lcov","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrandonchinn178%2Fhpc-lcov/lists"}