Coverage Utils
A set of commands for coverage info files manipulation.
Installing
$ dart pub global activate --source git https://github.com/mrverdant13/coverde.git
Commands
$ coverde
Coverage info actions.
A set of commands that encapsulate coverage-related functionalities.
Usage: cov [arguments]
Global options:
-h, --help Print this usage information.
Available commands:
filter Filter a coverage info file.
remove Remove a set of files and folders.
value Compute the coverage value (%) of an info file.
Run "cov help " for more information about a command.
coverde
sub-commands
coverde filter
Filter a coverage info file.
Filter the coverage info by ignoring data related to files with paths that matches the given PATTERNS.
The coverage data is taken from the ORIGIN_LCOV_FILE file and the result is appended to the DESTINATION_LCOV_FILE file.
Usage: cov filter [arguments]
-h, --help Print this usage information.
-i, --ignore-patterns=
Set of comma-separated path patterns of the files to be ignored.
Consider that the coverage info of each file is checked as a multiline block.
Each bloc starts with `SF:` and ends with `end_of_record`.
-o, --origin=
Origin coverage info file to pick coverage data from.
(defaults to "coverage/lcov.info")
-d, --destination=
Destination coverage info file to dump the resulting coverage data into.
(defaults to "coverage/wiped.lcov.info")
Run "cov help" to see global options.
coverde remove
Remove a set of files and folders.
Usage: cov remove [arguments]
-h, --help Print this usage information.
--[no-]accept-absence Accept absence of a file or folder.
When an element is not present:
- If enabled, the command will continue.
- If disabled, the command will fail.
(defaults to on)
Run "cov help" to see global options.
coverde value
Compute the coverage value (%) of an info file.
Compute the coverage value of the LCOV_FILE info file.
Usage: cov value [arguments]
-h, --help Print this usage information.
-f, --file=
Coverage info file to be used for the coverage value computation.
(defaults to "coverage/lcov.info")
-p, --[no-]print-files Print coverage value for each source file listed in the LCOV_FILE info file.
(defaults to on)
Run "cov help" to see global options.