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 have a directory containing only go testing files, for integration tests. I.e.:
src/
foo/
impl.go # for implementation
impl_test.go # for unit tests
test/
impl_test.go # for integration tests
When I run go build ./... in the root, this succeeds without warning (this is supported since this go commit). However, the default go-build precommit doesn't like it:
go-build.................................................................Failed
- hook id: go-build
- exit code: 1
go build mytest/foo/test: no non-test Go files in /.../repo/src/foo/test
The text was updated successfully, but these errors were encountered:
I have a directory containing only go testing files, for integration tests. I.e.:
When I run
go build ./...
in the root, this succeeds without warning (this is supported since this go commit). However, the default go-build precommit doesn't like it:The text was updated successfully, but these errors were encountered: