[go-nuts] Re: Go test package names

2016-08-03 Thread Uli Kunitz
Tests are usually included in the package. Testing a package cannot become easier this way and it is the only way to test internal functions, types, variables or constants. However if you have large test files, it may make sense to keep them in a separate repository because go-getting the packag

[go-nuts] Re: Go test package names

2016-08-03 Thread Uli Kunitz
The common practice is to write tests as part of the package to test. This allows you to test unexported functions and types, which is not be possible outside of the package. Testing the package makes it very easy. I created an external test package once for large test files, where including t