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

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

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

```ts test.ts icon="https://mintcdn.com/bun-zhcndoc/cnUTwgMuf4cCrwC-/icons/typescript.svg?fit=max&auto=format&n=cnUTwgMuf4cCrwC-&q=85&s=e7767043c9e885c34f2d6c8fe2a95217" theme={"theme":{"light":"github-light","dark":"dracula"}}
import { test } from "bun:test";

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

***

运行 `bun test` 将不会执行此测试。它将在终端输出中被标记为跳过。

```sh terminal icon="terminal" theme={"theme":{"light":"github-light","dark":"dracula"}}
bun test
```

```txt theme={"theme":{"light":"github-light","dark":"dracula"}}
test.test.ts:
✓ add [0.03ms]
✓ multiply [0.02ms]
» 尚未实现的功能

 2 通过
 1 跳过
 0 失败
 2 次 expect() 调用
共执行 3 个测试，来自 1 个文件。 [74.00ms]
```

***

另请参见：

* [将测试标记为待办](/guides/test/todo-tests)
* [文档 > 测试运行器 > 编写测试](/test/writing-tests)
