# coverage-lcov
`coverage-lcov` is a simple CLI for converting `.coverage` files generated by [Coverage.py](https://github.com/nedbat/coveragepy) to the `LCOV` format.
## Credits
- This tools is based on code from [Coverage.py](https://github.com/nedbat/coveragepy/blob/master/coverage/report.py)
- This tool is forked from [coveragepy-lcov](https://github.com/chaychoong/coveragepy-lcov) by [Chay Choong](https://github.com/chaychoong) to add support for older python versions.
## Installation
Using pip:
```bash
pip install coverage-lcov
```
## Usage
```bash
# If the .coverage file is in your current working directory
coverage-lcov
# Point to a different .coverage file path
coverage-lcov --data_file_path example/.coverage
# Write the output to a different file path
coverage-lcov --output_file_path build/lcov.info
# Use relative paths in the LCOV output
coverage-lcov --relative_path
```
## Options
```text
Usage: coverage-lcov [OPTIONS]
Options:
--data_file_path TEXT Path to .coverage file
--output_file_path TEXT lcov.info output file path
--config_file TEXT Path to .coveragerc file
--relative_path Use relative path in LCOV output
--preview Preview LCOV output
--help Show this message and exit.
```
## Further reading
- [LCOV format](http://ltp.sourceforge.net/coverage/lcov/geninfo.1.php)
- https://github.com/nedbat/coveragepy/issues/587
- https://github.com/chaychoong/coveragepy-lcov
Raw data
{
"_id": null,
"home_page": "https://github.com/TheCleric/coverage-lcov",
"name": "coverage-lcov",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0.0,>=3.6.3",
"maintainer_email": null,
"keywords": "coverage",
"author": "Adam Weeden",
"author_email": "adamweeden@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/59/87/e4d30c4b9461db4dae0f62ff7e375a1adffdd9f3354bacf19319ee6cfd88/coverage-lcov-0.3.0.tar.gz",
"platform": null,
"description": "# coverage-lcov\n\n`coverage-lcov` is a simple CLI for converting `.coverage` files generated by [Coverage.py](https://github.com/nedbat/coveragepy) to the `LCOV` format.\n\n## Credits\n\n- This tools is based on code from [Coverage.py](https://github.com/nedbat/coveragepy/blob/master/coverage/report.py)\n- This tool is forked from [coveragepy-lcov](https://github.com/chaychoong/coveragepy-lcov) by [Chay Choong](https://github.com/chaychoong) to add support for older python versions.\n\n## Installation\n\nUsing pip:\n\n```bash\npip install coverage-lcov\n```\n\n## Usage\n\n```bash\n# If the .coverage file is in your current working directory\ncoverage-lcov\n\n# Point to a different .coverage file path\ncoverage-lcov --data_file_path example/.coverage\n\n# Write the output to a different file path\ncoverage-lcov --output_file_path build/lcov.info\n\n# Use relative paths in the LCOV output\ncoverage-lcov --relative_path\n```\n\n## Options\n\n```text\nUsage: coverage-lcov [OPTIONS]\n\nOptions:\n --data_file_path TEXT Path to .coverage file\n --output_file_path TEXT lcov.info output file path\n --config_file TEXT Path to .coveragerc file\n --relative_path Use relative path in LCOV output\n --preview Preview LCOV output\n --help Show this message and exit.\n```\n\n## Further reading\n\n- [LCOV format](http://ltp.sourceforge.net/coverage/lcov/geninfo.1.php)\n- https://github.com/nedbat/coveragepy/issues/587\n- https://github.com/chaychoong/coveragepy-lcov\n",
"bugtrack_url": null,
"license": null,
"summary": "A simple .coverage to LCOV converter",
"version": "0.3.0",
"project_urls": {
"Homepage": "https://github.com/TheCleric/coverage-lcov",
"Repository": "https://github.com/TheCleric/coverage-lcov"
},
"split_keywords": [
"coverage"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "7ae2100f07ab0796511e2c119a8a0519d57c4dd3e215aa532b7022a5df13c6a9",
"md5": "efabad385ede164ae3e2a05d5b7e9a55",
"sha256": "23ae34a535f1ed3fa4cdf9682f6c1fe1a40aa98c94aa05614512dbf2da82e749"
},
"downloads": -1,
"filename": "coverage_lcov-0.3.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "efabad385ede164ae3e2a05d5b7e9a55",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0.0,>=3.6.3",
"size": 8375,
"upload_time": "2024-06-21T22:17:17",
"upload_time_iso_8601": "2024-06-21T22:17:17.581345Z",
"url": "https://files.pythonhosted.org/packages/7a/e2/100f07ab0796511e2c119a8a0519d57c4dd3e215aa532b7022a5df13c6a9/coverage_lcov-0.3.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "5987e4d30c4b9461db4dae0f62ff7e375a1adffdd9f3354bacf19319ee6cfd88",
"md5": "55cabf041f944a07e013eb782bd55d91",
"sha256": "0b352da0c72eacd555de2e10fa75ec165b8849ab6827218abc3ef6be2ec861f6"
},
"downloads": -1,
"filename": "coverage-lcov-0.3.0.tar.gz",
"has_sig": false,
"md5_digest": "55cabf041f944a07e013eb782bd55d91",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0.0,>=3.6.3",
"size": 8145,
"upload_time": "2024-06-21T22:17:16",
"upload_time_iso_8601": "2024-06-21T22:17:16.253483Z",
"url": "https://files.pythonhosted.org/packages/59/87/e4d30c4b9461db4dae0f62ff7e375a1adffdd9f3354bacf19319ee6cfd88/coverage-lcov-0.3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-06-21 22:17:16",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "TheCleric",
"github_project": "coverage-lcov",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"tox": true,
"lcname": "coverage-lcov"
}