I created one sample go project and created a unit test cases for the same (In Linux environment, go1.3 version)
When i ran go test
the output would be
PASS
ok supported_db 0.201s
And i tried to perform code coverage for whole application by using go test -cover
command it shows
go tool: no such tool "cover"; to install:
go get code.google.com/p/go.tools/cmd/cover
Also i checked the coverage while running a specific test case by running go test -cover CouchDB_test.go
command it shows
ok command-line-arguments 0.158s coverage: 0.0% of statements
please help me to run code coverage in golang.