A terminal tool that displays test coverage for Go source files with color-coded output.
go-carpet is a command-line tool that displays test coverage for Go source files directly in the terminal. It runs `go test` and shows which lines of code are covered by tests using color-coded output, helping developers quickly identify gaps in test coverage. The tool works recursively across packages and supports various options for filtering and customizing the output.
Go developers who want to monitor test coverage efficiently from the command line, especially those working on projects with multiple packages or outside traditional GOPATH structures.
Developers choose go-carpet for its simplicity, speed, and terminal-native approach—it requires no external services or complex setup, providing immediate visual feedback on test coverage with minimal overhead.
Tool for show test coverage in terminal for Go source files
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Displays color-coded coverage directly in the terminal with options like -256colors for visual gradients, enabling instant feedback without external tools, as highlighted in the README's usage and screenshot.
Works recursively across multiple packages and outside GOPATH directories, making it suitable for modern Go projects, as stated in the Key Features section.
Supports -mincov for setting coverage thresholds and -file for specific file testing, allowing targeted analysis of untested code, detailed in the usage options.
Automatically skips vendor directories like Godeps and vendor unless -include-vendor is used, reducing noise in coverage reports, a feature emphasized in the Key Features.
Only provides terminal output with no built-in export to formats like HTML or JSON, restricting integration with other tools or sharing with non-CLI users.
Relies on terminal color shades, which may be less accessible or intuitive than graphical heatmaps from web-based tools, and requires extra steps like less -R for optimal viewing.
Requires manual installation via go install or binary downloads, unlike built-in Go tools, and depends on external commands for enhanced display, adding setup complexity.