Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/andrewstuart/bstest

A simple CLI to show how simply test coverage metrics can be gamed.
https://github.com/andrewstuart/bstest

bs coverage golang metrics test

Last synced: about 19 hours ago
JSON representation

A simple CLI to show how simply test coverage metrics can be gamed.

Awesome Lists containing this project

README

        

# bstest

Sometimes you just need test coverage.

`go install astuart.co/bstest@latest && bstest && go test -cover`

## Example:
```bash
➜ ~C/foo git:(master) ✗ go test -cover
? astuart.co/foo [no test files]
➜ ~C/foo git:(master) ✗ bstest 99
➜ ~C/foo git:(master) ✗ go test -cover
PASS
coverage: 99.9% of statements
ok astuart.co/foo 0.036s
```