pgtest

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package pgtest provides a testcontainers-backed PostgreSQL harness for integration tests built on go-foundation. It boots (or connects to) a real PostgreSQL instance behind the "integration" build tag, so ordinary unit-test runs stay fast and free of the container/docker dependency — importing this package's parent, testutil, does not pull testcontainers.

This file carries the branchy setup/reset/skip logic, deliberately WITHOUT the build tag, so it is unit testable with a fake executor and injected seams — no container or live database required. The heavy, testcontainers-backed wiring that drives this logic lives in postgres.go behind the tag.

Index

Constants

View Source
const TestDatabaseURLEnv = "FOUNDATION_TEST_DATABASE_URL"

TestDatabaseURLEnv is the env var that, when set, points the harness at an already-running PostgreSQL instance instead of booting a container.

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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