We use the standard golang testing environment.
The following conventions are used:
<package name>_test.go
and belong to the package <package_name>_test
.
There only exists one package test file per package.<package name>_test.go
and belong to the
package <package_name>_test
../testdata
within each package directory.Visual Studio Code has a very good golang test integration. For debugging a test this is the recommended solution.
The Makefile provided by us has a test
target that executes:
> go clean -testcache
> go build ./...
> go vet ./...
> go test ./...
Of course the commands can also be used on the command line. For details about golang testing refer to the standard documentation:
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.