go-carpet alternatives and similar packages
Based on the "Testing Frameworks" category.
Alternatively, view go-carpet alternatives based on common mentions on social networks and blogs.
-
Testify
A toolkit with common assertions and mocks that plays nicely with the standard library -
GoConvey
Go testing in the browser. Integrates with `go test`. Write behavioral tests in Go. -
gnomock
Test your code without writing mocks with ephemeral Docker containers ๐ฆ Setup popular services with just a couple lines of code โฑ๏ธ No bash, no yaml, only code ๐ป -
go-vcr
Record and replay your HTTP interactions for fast, deterministic and accurate tests -
testfixtures
Ruby on Rails like test fixtures for Go. Write tests against a real database -
goc
A Comprehensive Coverage Testing System for The Go Programming Language -
embedded-postgres
Run a real Postgres database locally on Linux, OSX or Windows as part of another Go application or test -
gotest.tools
A collection of packages to augment the go testing package and support common patterns. -
testza
Full-featured test framework for Go! Assertions, fuzzing, input testing, output capturing, and much more! ๐ -
go-testdeep
Extremely flexible golang deep comparison, extends the go testing package, tests HTTP APIs and provides tests suite -
dbcleaner
Clean database for testing, inspired by database_cleaner for Ruby -
GoSpec
Testing framework for Go. Allows writing self-documenting tests/specifications, and executes them concurrently and safely isolated. [UNMAINTAINED] -
jsonassert
A Go test assertion library for verifying that two representations of JSON are semantically equal -
testcase
testcase is an opinionated testing framework to support test driven design. -
assert
:exclamation:Basic Assertion Library used along side native go testing, with building blocks for custom assertions -
gogiven
gogiven - BDD testing framework for go that generates readable output directly from source code -
schema
Quick and easy expression matching for JSON schemas used in requests and responses -
gosuite
Test suites support for standard Go1.7 "testing" by leveraging Subtests feature -
testsql
Generate test data from SQL files before testing and clear it after finished.
Static code analysis for 29 languages.
Do you think we are missing an alternative of go-carpet or a related project?
README
go-carpet - show test coverage for Go source files
To view the test coverage in the terminal, just run go-carpet
.
It works outside of the GOPATH
directory. And it works recursively for multiple packages.
With -256colors
option, shades of green indicate the level of coverage.
By default skip vendor directories (Godeps,vendor), otherwise use -include-vendor
option.
Usage
usage: go-carpet [options] [paths]
-256colors
use more colors on 256-color terminal (indicate the level of coverage)
-args string
pass additional arguments for go test
-file string
comma-separated list of files to test (default: all)
-func string
comma-separated functions list (default: all functions)
-include-vendor
include vendor directories for show coverage (Godeps, vendor)
-summary
only show summary for each file
-version
get version
For view coverage in less, use -R
option:
go-carpet | less -R
Install
From source:
go get -u github.com/msoap/go-carpet
sudo ln -s $(go env GOPATH)/bin/go-carpet /usr/local/bin/go-carpet
Download binaries from: releases (OS X/Linux/Windows)
Install from homebrew (OS X):
brew tap msoap/tools
brew install go-carpet
# update:
brew upgrade go-carpet
Screenshot
See also
- blog.golang.org - the cover story
- gocover.io - simple Go test coverage service
- coveralls.io - test coverage service
- package cover - golang.org/x/tools/cover
- gotests - Go commandline tool that generates table driven tests
- docker-golang-checks - Go-code checks Docker image