Reputation: 1784
My folders are structured as follows:
src/
github.com/
hello/
hello.go
hello_test.go
integers/
integers.go
integers_test.go
hello.go/hello_test.go
belong to package main
integers.go/integers_test.go
belong to package integers
When runing go test
from the root of folder hello, it only runs hello_test.go
. How can I get it to run all tests recursively. Is this the right way to structure tests inside their respective packages?
Upvotes: 1
Views: 1389