Skip to main content

testing

Use when adding, updating, or reviewing tests in agent-eval, choosing coverage, testing lifecycle or concurrency behavior, or isolating external dependencies. Do not use for scenario grading or changes that do not involve repository tests.

来源信息

仓库
primer/agent-eval
最近来源活动
2026年10月24日 16:16
检测到的 SKILL.md 语言
英语
星标
3
Forks
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
5 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
testing
description
Use when adding, updating, or reviewing tests in agent-eval, choosing coverage, testing lifecycle or concurrency behavior, or isolating external dependencies. Do not use for scenario grading or changes that do not involve repository tests.
# Testing Write tests that protect behavior our callers rely on, without depending on implementation details or external services. ## Contents - [Workflow](#workflow) - [Philosophy](references/philosophy.md): what to test and where to draw boundaries - [Authoring](references/authoring.md): file organization, `test`, `expect`, and running tests - [Isolation](references/isolation.md): in-memory dependencies, injection, and integration tests ## Workflow - First ask [is this worth testing?](references/philosophy.md#is-this-worth-testing). Identify a meaningful contract and a plausible regression before adding tests. - Read the relevant references; existing tests are examples, not rules to copy. - Use real logic with in-memory dependencies wherever possible. - Run the focused tests and confirm they fail when the intended behavior breaks. ## References | Name | When to use | | :-------------------------------------------- | :------------------------------------------------------------------------------------------------------- | | [Lifecycle examples](references/lifecycle.md) | Test resource ownership, controlled concurrent work, command failures, and contracts shared by adapters. | This skill covers repository tests. For grading agent-generated work in a scenario, use the [checks reference](../../../packages/agent-eval/docs/references/checks.md).
在 GitHub 查看