2026-01-29 14:46:31 +00:00
|
|
|
# core go cov
|
|
|
|
|
|
|
|
|
|
Generate coverage report with thresholds.
|
|
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
core go cov [flags]
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Flags
|
|
|
|
|
|
|
|
|
|
| Flag | Description |
|
|
|
|
|
|------|-------------|
|
|
|
|
|
| `--pkg` | Package to test (default: `./...`) |
|
2026-01-29 16:10:23 +00:00
|
|
|
| `--html` | Generate HTML coverage report |
|
|
|
|
|
| `--open` | Generate and open HTML report in browser |
|
|
|
|
|
| `--threshold` | Minimum coverage percentage (exit 1 if below) |
|
2026-01-29 14:46:31 +00:00
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
core go cov # Summary
|
|
|
|
|
core go cov --html # HTML report
|
|
|
|
|
core go cov --open # Open in browser
|
|
|
|
|
core go cov --threshold 80 # Fail if < 80%
|
|
|
|
|
core go cov --pkg ./pkg/release # Specific package
|
|
|
|
|
```
|