跳过
Translation status: 简体中文 reader-locale proof. Term names and code fences follow the zh-Hans pack; supporting prose may still be English.
Marks a test case as skipped with a reason.
Aliases: skip
Syntax: 测试 <name> 跳过 <reason> <block>
Category#
testing
Related#
Examples#
radix/corpus/omitte/omitte.fab (canonical · keyword)#
Marks a test case as skipped with a reason.
# =============================================================================
# 跳过 — Marks a test case as skipped with a reason.
# =============================================================================
#
# What this teaches:
# • Test skipping — `跳过` marks a test case to be skipped, with a required reason string.
# • Test modifiers — Tests can be modified with `跳过` to temporarily disable them.
#
# Common mistakes:
# • Confusing 跳过 (test skip) with 静默 (no-op) — 跳过 marks a test as skipped, 静默 is an empty statement.
#
# See also: 测试, 预期
# =============================================================================
# 跳过 — skipped test modifier
#
# GRAMMAR:
# testModifier :← '跳过' stringLit
#
# EXPECTED OUTPUT:
# No 入口 — declaration or test-runner surface only.
#
# BACKEND:
# declaration-only test modifier (whitelist: 跳过/omitte.fab).
#
test "database connection" skip "blocked" {
assert false
}