Awesome
luacov-console
Luacov-console is a luacov reporter makes it easier for your development cycle and CI.
Usage
- Run tests with luacov enabled.
- Run
luacov-console [workdir]
to generateluacov.report.out
andluacov.report.out.index
. Unlike luacov, luacov-console also counts lua files underworkdir
which weren't touched by tests. - Run
luacov-console -s
to see the summary of coverage results. - Run
luacov-console -l [lua pattern1] [lua pattern2]
to see the report of matched files. - Run
luacov-console -s -l [lua pattern1] [lua pattern2]
to see the summary only for matched files.
Installation
[sudo] luarocks install luacov-console
Commandline options
$ luacov-console -h
Usage: luacov-console [--no-colored] [-s] [-h] [<workdir>]
[-l <list> [<list>] ...]
Combine luacov with your development cycle and CI
Arguments:
workdir Specific the source directory (default: .)
Options:
--no-colored Don't print with color.
-l <list> [<list>] ..., --list <list> [<list>] ...
List coverage results of files matched given lua pattern(s).
-s, --summary Show coverage summary.
-h, --help Show this help message and exit.
TODO
- Make index file optional.
- Customize color schema.