-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Labels
Milestone
Description
- What version of Go are you using (
go version)?
1.6 linux/amd64 - What did you do?
Skip a benchmark*testing.B - What did you expect to see?
It should display a message, like*testing.T - What did you see instead?
This is from my project.
It skips tests and benchmark if there is no Redis server listening on the default port.
As you can see, there are "SKIP" messages if a test is skipped, but only the error message if a benchmark is skipped.
➜ ~ go test -v -bench=. github.com/pierrre/imageserver/cache/redis
=== RUN TestGetSet
--- SKIP: TestGetSet (0.00s)
redis_test.go:115: dial tcp [::1]:6379: getsockopt: connection refused
=== RUN TestGetMiss
--- SKIP: TestGetMiss (0.00s)
redis_test.go:115: dial tcp [::1]:6379: getsockopt: connection refused
=== RUN TestGetErrorAddress
--- PASS: TestGetErrorAddress (0.00s)
=== RUN TestSetErrorAddress
--- PASS: TestSetErrorAddress (0.00s)
=== RUN TestGetErrorUnmarshal
--- SKIP: TestGetErrorUnmarshal (0.00s)
redis_test.go:115: dial tcp [::1]:6379: getsockopt: connection refused
=== RUN TestSetErrorMarshal
--- SKIP: TestSetErrorMarshal (0.00s)
redis_test.go:115: dial tcp [::1]:6379: getsockopt: connection refused
PASS
BenchmarkGetSizeSmall-8 0 0 ns/op
--- BENCH: BenchmarkGetSizeSmall-8
redis_test.go:115: dial tcp [::1]:6379: getsockopt: connection refused
BenchmarkGetSizeMedium-8 0 0 ns/op
--- BENCH: BenchmarkGetSizeMedium-8
redis_test.go:115: dial tcp [::1]:6379: getsockopt: connection refused
BenchmarkGetSizeLarge-8 0 0 ns/op
--- BENCH: BenchmarkGetSizeLarge-8
redis_test.go:115: dial tcp [::1]:6379: getsockopt: connection refused
BenchmarkGetSizeHuge-8 0 0 ns/op
--- BENCH: BenchmarkGetSizeHuge-8
redis_test.go:115: dial tcp [::1]:6379: getsockopt: connection refused
BenchmarkGetParallelism1-8 0 0 ns/op
--- BENCH: BenchmarkGetParallelism1-8
redis_test.go:115: dial tcp [::1]:6379: getsockopt: connection refused
BenchmarkGetParallelism2-8 0 0 ns/op
--- BENCH: BenchmarkGetParallelism2-8
redis_test.go:115: dial tcp [::1]:6379: getsockopt: connection refused
BenchmarkGetParallelism4-8 0 0 ns/op
--- BENCH: BenchmarkGetParallelism4-8
redis_test.go:115: dial tcp [::1]:6379: getsockopt: connection refused
BenchmarkGetParallelism8-8 0 0 ns/op
--- BENCH: BenchmarkGetParallelism8-8
redis_test.go:115: dial tcp [::1]:6379: getsockopt: connection refused
BenchmarkGetParallelism16-8 0 0 ns/op
--- BENCH: BenchmarkGetParallelism16-8
redis_test.go:115: dial tcp [::1]:6379: getsockopt: connection refused
BenchmarkGetParallelism32-8 0 0 ns/op
--- BENCH: BenchmarkGetParallelism32-8
redis_test.go:115: dial tcp [::1]:6379: getsockopt: connection refused
BenchmarkGetParallelism64-8 0 0 ns/op
--- BENCH: BenchmarkGetParallelism64-8
redis_test.go:115: dial tcp [::1]:6379: getsockopt: connection refused
BenchmarkGetParallelism128-8 0 0 ns/op
--- BENCH: BenchmarkGetParallelism128-8
redis_test.go:115: dial tcp [::1]:6379: getsockopt: connection refused
ok github.com/pierrre/imageserver/cache/redis 0.014s
Reactions are currently unavailable