An open API service indexing awesome lists of open source software.

https://github.com/spacewander/luacov-console

Combine luacov with your development cycle and CI
https://github.com/spacewander/luacov-console

Last synced: over 1 year ago
JSON representation

Combine luacov with your development cycle and CI

Awesome Lists containing this project

README

          

# luacov-console

![luacov-console](./luacov-console.png)

Luacov-console is a luacov reporter makes it easier for your development cycle and CI.

## Usage

1. Run tests with [luacov](https://github.com/keplerproject/luacov) enabled.
2. Run `luacov-console [workdir]` to generate `luacov.report.out` and `luacov.report.out.index`.
Unlike luacov, luacov-console also counts lua files under `workdir` which weren't touched by tests.
3. Run `luacov-console -s` to see the summary of coverage results.
4. Run `luacov-console -l [lua pattern1] [lua pattern2]` to see the report of matched files.
5. 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] []
[-l [] ...]

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