渲染zh-Hant

solum_in

Translation status: 繁體中文 reader-locale proof. Code fences render through the zh-Hant pipeline; prose is canonical Latin.

Restricts a test to a named environment or target.

Syntax: solum_in <string> <string>

Category#

testing

Examples#

radix/corpus/solum-in/solum-in.fab (canonical · keyword)#

Restricts a test to a named environment or target.

# =============================================================================
# solum_in — Restricts a test to a named environment or target.
# =============================================================================
#
# What this teaches:
#   • Environment scoping — `solum_in "ci"` restricts a test to only run in
#     the specified environment (e.g., CI, local)
#   • Useful for tests that depend on external infrastructure or specific
#     runtime conditions
#
# Common mistakes:
#   • Confusing `solum_in` (environment-scoping keyword) with `solum` (stdlib module / test modifier).
#
# See also: requirit
# =============================================================================

# solum_in — environment-scoped test modifier
#
# GRAMMAR:
#   testModifier :← 'solum_in' stringLit
#
# EXPECTED OUTPUT:
#   No incipit — declaration or test-runner surface only.
#
# BACKEND:
#   declaration-only test modifier (whitelist: solum-in/solum-in.fab).
#

test "ci only" only_in "ci" {
    assert true
}