Documentation ¶
Overview ¶
Package integration is a helper for running integration tests.
Index ¶
Constants ¶
View Source
const (
DefaultDSN = `host=localhost port=5434 user=claircore dbname=claircore sslmode=disable`
)
DefaultDSN is a dsn for database server usually set up by the project's Makefile.
Variables ¶
This section is empty.
Functions ¶
func Skip ¶
Skip will skip the current test or benchmark if this package was built without the "integration" build tag.
This should be used as an annotation at the top of the function, like (*testing.T).Parallel().
func TestThatTouchesNetwork(t *testing.T) { t.Parallel() integration.Skip(t) // ... }
Types ¶
Click to show internal directories.
Click to hide internal directories.