> ## Documentation Index
> Fetch the complete documentation index at: https://bun.ll1025.cn/llms.txt
> Use this file to discover all available pages before exploring further.

# 使用 Bun 测试运行器跳过测试

要使用 Bun 测试运行器跳过测试，请使用 `test.skip` 函数。

```ts test.ts icon="https://mintcdn.com/span-inc/82N53aP7NFbaCVSl/icons/typescript.svg?fit=max&auto=format&n=82N53aP7NFbaCVSl&q=85&s=787d39d6a7d96d7f9540dc74344eba23" theme={null}
import { test } from "bun:test";

test.skip("未实现的功能", () => {
  expect(Bun.isAwesome()).toBe(true);
});
```

***

运行 `bun test` 不会执行此测试。终端输出会将其标记为已跳过。

```sh terminal icon="terminal" theme={null}
bun test
```

```txt theme={null}
test.test.ts:
✓ add [0.03ms]
✓ multiply [0.02ms]
» 未实现的功能

 2 通过
 1 跳过
 0 失败
 2 个 expect() 调用
跨 1 个文件运行了 3 个测试。 [74.00ms]
```

***

参见：

* [将测试标记为待办](/guides/test/todo-tests)
* [编写测试](/test/writing-tests)
