daurnimator / luacov-reporter-lcov

A luacov reporter for use with lcov

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

luacov-reporter-lcov

A luacov reporter for use with 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

# 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.

About

A luacov reporter for use with lcov

License:MIT License


Languages

Language:Lua 100.0%