AgentSkillsCN

test-adapter

同时运行所有测试——先并行运行单元测试,再与后端一起运行验收测试。在用户想要运行完整的测试套件,或提及“/test-all”命令时使用此功能。

SKILL.md
--- frontmatter
name: test-adapter
description: Run adapter module tests. First argument is adapter name (matches directory under backend/adapters/). Use when user wants to run adapter tests or mentions /test-adapter command.

/test-adapter - Run Adapter Tests

Usage

code
/test-adapter rest
/test-adapter h2 LoginStorageTest
/test-adapter external-api
/test-adapter payment PaymentGatewayCreatePaymentTest

Convention

Adapter name maps directly to gradle module: :adapters:{adapter}:test

Action

Parse arguments: first word is adapter name, optional second word is test filter.

Without test filter:

bash
cd backend && ./gradlew.bat :adapters:{adapter}:test --rerun-tasks

With test filter:

bash
cd backend && ./gradlew.bat :adapters:{adapter}:test --tests "*{filter}*" --rerun-tasks

Output

Report the test results from output.