All Projects → mcubik → goverreport

mcubik / goverreport

Licence: MIT license
Command line tool for coverage reporting and validation

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to goverreport

Gogradle
A Gradle Plugin Providing Full Support for Go
Stars: ✭ 712 (+1518.18%)
Mutual labels:  coverage, test, coverage-report
Codecov Python
Python report uploader for Codecov
Stars: ✭ 162 (+268.18%)
Mutual labels:  coverage, coverage-report
Typescript Coverage Report
Node command tool to generate TypeScript coverage report
Stars: ✭ 138 (+213.64%)
Mutual labels:  coverage, coverage-report
cover.run
Code coverage
Stars: ✭ 34 (-22.73%)
Mutual labels:  coverage, test
Devel Cover
Code coverage metrics for Perl
Stars: ✭ 91 (+106.82%)
Mutual labels:  coverage, test
Codacy Coverage Reporter
Multi-language coverage reporter for Codacy
Stars: ✭ 96 (+118.18%)
Mutual labels:  coverage, coverage-report
unitest
🌎 Seamless node and browser unit testing with code coverage
Stars: ✭ 28 (-36.36%)
Mutual labels:  coverage, coverage-report
Xcov
Nice code coverage reporting without hassle
Stars: ✭ 467 (+961.36%)
Mutual labels:  coverage, coverage-report
react-testing-mocha-chai-enzyme
A solid test setup for React components with Mocha, Chai, Sinon, Enzyme in a Webpack/Babel application.
Stars: ✭ 48 (+9.09%)
Mutual labels:  coverage, coverage-report
javadoc-coverage
A Doclet to generate JavaDoc coverage reports ☕️🧪📗
Stars: ✭ 23 (-47.73%)
Mutual labels:  coverage, coverage-report
kotlin-plugin-generated
A Kotlin compiler plugin that annotates Kotlin-generated methods for improved coverage reports
Stars: ✭ 33 (-25%)
Mutual labels:  coverage, test
Kahlan
✔️ PHP Test Framework for Freedom, Truth, and Justice
Stars: ✭ 1,065 (+2320.45%)
Mutual labels:  coverage, test
enterprise
Code coverage done right.® On-premise enterprise version.
Stars: ✭ 63 (+43.18%)
Mutual labels:  coverage, coverage-report
Bashcov
Code coverage tool for Bash
Stars: ✭ 113 (+156.82%)
Mutual labels:  coverage, coverage-report
Gcovr
generate code coverage reports with gcc/gcov
Stars: ✭ 482 (+995.45%)
Mutual labels:  coverage, coverage-report
Alsatian
TypeScript testing framework with test cases
Stars: ✭ 244 (+454.55%)
Mutual labels:  coverage, test
Shellspec
A full-featured BDD unit testing framework for bash, ksh, zsh, dash and all POSIX shells
Stars: ✭ 375 (+752.27%)
Mutual labels:  coverage, test
Simplecov
Code coverage for Ruby with a powerful configuration library and automatic merging of coverage across test suites
Stars: ✭ 4,362 (+9813.64%)
Mutual labels:  coverage, coverage-report
jacoco-badge-generator
Coverage badges, and pull request coverage checks, from JaCoCo reports in GitHub Actions
Stars: ✭ 53 (+20.45%)
Mutual labels:  coverage, coverage-report
angular-cli-skeleton
angular-cli skeleton to quickly start a new project with advanced features and best practices. All features are described in README.md.
Stars: ✭ 32 (-27.27%)
Mutual labels:  coverage, test

goverreport

Command line tool for coverage reporting and validation.

travis-c Coverage Status Maintainability

Installation

go get -u github.com/mcubik/goverreport

Usage

goverreport reads a coverage profile and prints a report on the terminal. Optionally, it can also validate a coverage threshold.

Usage: goverreport [flags] -coverprofile=coverprofile.out

Flags:
  -coverprofile string
        Coverage output file (default "coverage.out")
  -metric string
        Use a specific metric for the threshold: block, stmt (default "block")
  -order string
        Sort order: asc, desc (default "asc")
  -packages
        Report coverage per package instead of per file
  -sort string
        Column to sort by: filename, package, block, stmt, missing-blocks, missing-stmts (default "filename")
  -threshold float
        Return an error code of 1 if the coverage is below a threshold

Example

$ goverreport -sort=block -order=desc -threshold=85
+------------------+--------+---------+-------+---------+---------------+--------------+
|       FILE       | BLOCKS | MISSING | STMTS | MISSING | BLOCK COVER % | STMT COVER % |
+------------------+--------+---------+-------+---------+---------------+--------------+
| report/view.go   |      4 |       0 |     7 |       0 |        100.00 |       100.00 |
| report/report.go |     47 |       5 |    60 |       5 |         89.36 |        91.67 |
| main.go          |     30 |      10 |    44 |      15 |         66.67 |        65.91 |
+------------------+--------+---------+-------+---------+---------------+--------------+
|      TOTAL       |   81   |   15    |  111  |   20    |     81 48     |    81 98     |
+------------------+--------+---------+-------+---------+---------------+--------------+
exit status 1

Configuration

You can use a fixed threshold by configuring it in the .goverreport.yml configuration file. This file also lets you configure the root path of the project, so that it gets stripped from the names of the files, and a set of path prefixes to be excluded from the report.

Here's an example:

threshold: 85
thresholdType: stmt
root: "github.com/mcubik/goverreport"
exclusions: [test/it] # Exclude packages prefixed with "test/it"
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].