I have multiple packages under a subdirectory under src/,
running the tests for each package with go test
is working fine.
When trying to run all tests
Please try out the following github repository.
https://github.com/appleboy/golang-testing
Copy coverage.sh
to /usr/local/bin/coverage
and change permission.
$ curl -fsSL https://raw.githubusercontent.com/appleboy/golang-testing/master/coverage.sh /usr/local/bin/coverage
$ chmod +x /usr/local/bin/coverage