微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🧪

零风险占位技能开发模板

Test · vlatest
专业技能 安全 A 级 作者 Unknown 公开目录收录
下载 2k 安装 788 收藏 5.3k 浏览 127.7k
原始页面

简介

来自 T3 社区来源的纯文档型 Skill 模板,零代码执行风险,适合作为开发基础框架或占位符使用。

原始描述

|

技能正文


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 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 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

正文来自原始仓库, 版权归作者所有,许可:MIT。 权利人认为有不妥,可申请下架。

标签

development-engineeringtestingdocs

同类 Skill