渲染zh-Hans

仅

Translation status: 简体中文 reader-locale proof. Term names and code fences follow the zh-Hans 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
}