渲染zh-Hant

僅限

Translation status: 繁體中文 reader-locale proof. Term names and code fences follow the zh-Hant pack; supporting prose may still be English.

Marks a test as the only test to run.

Syntax: 僅限

Category#

testing

Examples#

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

Marks a test as the only test to run.

# =============================================================================
# 僅限 — Marks a test as the only test to run.
# =============================================================================
#
# What this teaches:
#   • Focused test execution — `僅限` marks a `測試` to run in isolation,
#     skipping all other tests in the suite
#   • Useful during development to run a single test without modifying the
#     test runner configuration
#
# Common mistakes:
#   • Confusing `僅限` (stdlib module) with `僅限於` (environment-scoping keyword) — they serve different purposes.
#
# See also: 略過, 預期
# =============================================================================

# 僅限 — focused test modifier
#
# GRAMMAR:
#   testModifier :← '僅限'
#
# EXPECTED OUTPUT:
#   No 入口 — declaration or test-runner surface only.
#
# BACKEND:
#   declaration-only test modifier (whitelist: 僅限/solum.fab).
#

test "focus me" only {
    assert true
}