You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to run tests for all chapters from the root (book) directory.
go test ./... works as expected, running all tests found in all subdirectories.
$ go test ./...
? bitbucket.org/lsheehan/fp-in-go [no test files]
? bitbucket.org/lsheehan/fp-in-go/chapter1 [no test files]
ok bitbucket.org/lsheehan/fp-in-go/chapter1/01_fib 2.860s
go test -bench ./... does not. Here's what it does:
$ go test -bench ./...
? bitbucket.org/lsheehan/fp-in-go [no test files]
I can, however, move into the directory that contains the tests and get good results from the benchmark test:
... chapter1/fib $ go test -bench=.
1
BenchmarkFibFunc-8 100
10000
1000000
3000000
3000000 570 ns/op
PASS
ok bitbucket.org/lsheehan/fp-in-go/chapter1/fib 5.100s
The text was updated successfully, but these errors were encountered:
What version of Go are you using (
go version
)?go version go1.7.4 darwin/amd64
What operating system and processor architecture are you using (
go env
)?What did you do?
My project directory looks like this:
I would like to run tests for all chapters from the root (book) directory.
go test ./...
works as expected, running all tests found in all subdirectories.go test -bench ./...
does not. Here's what it does:I can, however, move into the directory that contains the tests and get good results from the benchmark test:
The text was updated successfully, but these errors were encountered: