Skip to main content

test

Write, update, and fix tests in S3Mock. Use when asked to add test coverage, create test cases, fix failing tests, or verify test correctness. Covers unit tests (*Test.kt in server/), controller slice tests (@WebMvcTest), and integration tests (*IT.kt in integration-tests/ against a live Docker container).

来源信息

仓库
adobe/S3Mock
最近来源活动
2026年7月27日 17:34
检测到的 SKILL.md 语言
英语
星标
1,174
Forks
200

安装方式

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

检查来源文件

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

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
test
description
Write, update, and fix tests in S3Mock. Use when asked to add test coverage, create test cases, fix failing tests, or verify test correctness. Covers unit tests (*Test.kt in server/), controller slice tests (@WebMvcTest), and integration tests (*IT.kt in integration-tests/ against a live Docker container).
# Test Skill ## Entry Criteria Use to add/update unit tests (`*Test.kt`) or integration tests (`*IT.kt`), fix failing tests, or verify test coverage. ## Before Starting 1. Read root `AGENTS.md`, the relevant module `AGENTS.md`, and **[docs/TESTING.md](../../../docs/TESTING.md)** for base classes, conventions, and running commands. 2. If existing tests have structural problems (poor naming, shared state, weak assertions), invoke the **`refactor` skill** first. ## Execution Steps 1. Select the base class per `docs/TESTING.md` § Unit Tests, or `S3TestBase` per **[integration-tests/AGENTS.md](../../../integration-tests/AGENTS.md)** for integration tests. 2. Write tests following `docs/TESTING.md` conventions (naming, structure, assertions, independence). 3. Cover both success and failure/error paths. 4. Update the copyright year in every modified file (`INVARIANTS.md`). 5. Invoke the **`lint` skill**. 6. Run `make test` (unit) or `make integration-tests` (integration) to verify locally. ## Completion Criteria - [ ] All new/changed code paths covered, including failure cases - [ ] Correct base class and conventions used (per `docs/TESTING.md`) - [ ] Tests pass locally - [ ] Copyright year updated in every modified file - [ ] Lint gates pass (via `lint` skill) ## Resources - [`AGENTS.md`](../../../AGENTS.md), [`INVARIANTS.md`](../../../INVARIANTS.md) - Relevant module `AGENTS.md` (`server/AGENTS.md` or `integration-tests/AGENTS.md`) - [`docs/TESTING.md`](../../../docs/TESTING.md), [`docs/KOTLIN.md`](../../../docs/KOTLIN.md)
在 GitHub 查看