testutil

package
v1.10.5 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 3 Imported by: 0

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

func SkipIfNotIntegration(t *testing.T, tags ...string)

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.

Jump to

Keyboard shortcuts

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