Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/andrewstuart/bstest
- Owner: andrewstuart
- Created: 2019-07-04T07:21:44.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-08T01:14:03.000Z (over 3 years ago)
- Last Synced: 2024-06-21T19:57:01.180Z (8 months ago)
- Topics: bs, coverage, golang, metrics, test
- Language: Go
- Homepage:
- Size: 1.95 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```