dwenegar / luacov-summary

A LuaCov reporter printing a simple summary.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

luacov-summary

A LuaCov reporter printing a simple summary.

Installation

luarocks install dwenegar/luarocks-summary

Usage

Add the following to your .luacov file.

reporter = summary

Configuration

The reporter can be configured by adding the following table to your .luacov file, and customizing it to your liking.

summary = {
  user_color = false, -- if `true` the summary will be printed using colors
  threshold = {
    low = 0.25,       -- upper limit of what it's considered low coverage
    fair = 0.65,      -- upper limit of what it's considered fair coverage
    good = 0.80       -- upper limit of what it's considered good coverage
  }
}

About

A LuaCov reporter printing a simple summary.

License:MIT License


Languages

Language:Lua 83.2%Language:Makefile 16.8%