https://github.com/daurnimator/luacov-reporter-lcov
A luacov reporter for use with lcov
https://github.com/daurnimator/luacov-reporter-lcov
coverage lcov lua luacov
Last synced: about 1 month ago
JSON representation
A luacov reporter for use with lcov
- Host: GitHub
- URL: https://github.com/daurnimator/luacov-reporter-lcov
- Owner: daurnimator
- License: mit
- Created: 2018-07-28T07:45:18.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-11-01T11:03:20.000Z (over 5 years ago)
- Last Synced: 2025-02-23T17:45:22.860Z (3 months ago)
- Topics: coverage, lcov, lua, luacov
- Language: Lua
- Size: 10.7 KB
- Stars: 14
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS
- License: LICENSE.md
Awesome Lists containing this project
README
# luacov-reporter-lcov
A [luacov](https://keplerproject.github.io/luacov/) reporter for use with [lcov](https://github.com/linux-test-project/lcov).
## Installation
Use luarocks:
```
luarocks install luacov-reporter-lcov
```luacov-reporter-lcov will optionally use an md5 module if you have one installed.
## Usage
First generate your luacov stats file, e.g. via passing `-lluacov` to Lua or with `busted -c`
```sh
# Invoke luacov with a custom reporter
luacov -r lcov
# Generate a set of HTML pages showcasing your coverage
genhtml luacov.report.out -o destination_directory/
```To generate cross-language coverage (e.g. for a lua library with both C and Lua components), you can first assemble files with the `lcov` tool.