A tool for displaying test coverage of Go source files directly in the terminal, with 256-color gradient coverage indication and recursive multi-package support.
- v1.10.0
- Published at
- Dec 7, 2022
- 250
- Stars
- 2,518
- Download
- Synced at
- 21d ago
Latest release
v1.10.0Dec 7, 2022, 10:09 PMDownloads slow? Switch the source anytime above
README
Project Overview
go-carpet is a tool that shows test coverage for Go source files in the terminal. Just run go-carpet to view test coverage.
Key Features
- Terminal coverage display
- 256-color support: Shades of green indicate coverage levels
- Recursive multi-package processing
- Skip vendor directories (by default)
- Coverage threshold filtering:
-mincovoption
Target Audience
- Go developers
- Developers who need to view test coverage
Quick Start
- Install:
go install github.com/msoap/go-carpet@latest - Or download binaries from Releases
- Run:
go-carpet - Use
-256colorsfor more colors
Core Advantages
- View coverage directly in the terminal
- 256-color gradient display
- Recursive multi-package processing
System Requirements
- OS: macOS, Linux, Windows
- Architectures: x86_64, arm64
Release history
Sort