go/test

Run Go Tests

Run Go test suite

go
test
testing

Command

go test ./...

Explanation

Execute Go test files and generate coverage reports for your code.

Examples

Run all tests

go test ./...

Run tests with verbose output

go test -v

Run tests with coverage

go test -cover