integrationtest

package
v2.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package integrationtest holds the tests that talk to a real PostgreSQL or MySQL server. They are behind the "integration" build tag and skip unless TEST_POSTGRES_URL or TEST_MYSQL_URL is set:

TEST_POSTGRES_URL=postgres://… go test -tags=integration ./integrationtest/...

They live outside the root package for the same reason the root package stopped importing drivers: a driver imported by a package's test still reaches every consumer's go.sum. Here it reaches nobody, and the tests get to register their drivers exactly as a real program would.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL