only
Translation status: English reader-locale proof. Term names and code fences follow the en pack; supporting prose may still be English.
Marks a test as the only test to run.
Syntax: only
Category#
testing
Related#
Examples#
radix/corpus/solum/solum.fab (canonical · keyword)#
Marks a test as the only test to run.
# =============================================================================
# only — Marks a test as the only test to run.
# =============================================================================
#
# What this teaches:
# • Focused test execution — `only` marks a `test` 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 `only` (stdlib module) with `only_in` (environment-scoping keyword) — they serve different purposes.
#
# See also: skip, todo
# =============================================================================
# only — focused test modifier
#
# GRAMMAR:
# testModifier :← 'only'
#
# EXPECTED OUTPUT:
# No main — declaration or test-runner surface only.
#
# BACKEND:
# declaration-only test modifier (whitelist: only/solum.fab).
#
test "focus me" only {
assert true
}