Documentation
¶
Overview ¶
Package testutil provides shared test helpers for the go-tool-base module.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SkipIfNotIntegration ¶
SkipIfNotIntegration skips the current test unless integration tests are enabled. Tests are enabled when:
- INT_TEST is set to any non-empty value (runs all integration tests), OR
- INT_TEST_<TAG> is set for any of the provided tags (targeted runs).
Tags are matched case-insensitively against INT_TEST_<TAG> environment variables, allowing targeted execution of specific test groups:
testutil.SkipIfNotIntegration(t, "vcs") // runs if INT_TEST=1 OR INT_TEST_VCS=1 testutil.SkipIfNotIntegration(t, "config") // runs if INT_TEST=1 OR INT_TEST_CONFIG=1 testutil.SkipIfNotIntegration(t) // runs only if INT_TEST=1
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.