AgentSkillsCN

test-acceptance

运行适配器模块测试。第一个参数为适配器名称(与后端/adapters/下的目录相匹配)。在用户想要运行适配器测试,或提及“/test-adapter”命令时使用此功能。

SKILL.md
--- frontmatter
name: test-acceptance
description: Run acceptance tests (backend API or frontend UI). Use when user wants to run E2E acceptance tests or mentions /test-acceptance command.

Run Acceptance Tests

Backend must be running first (/run-backend).

Action

All tests:

bash
cd acceptance/app-acceptance && ./gradlew.bat test --rerun-tasks

Backend tests only:

bash
cd acceptance/app-acceptance && ./gradlew.bat backendTest --rerun-tasks

Frontend tests only:

bash
cd acceptance/app-acceptance && ./gradlew.bat frontendTest --rerun-tasks

With argument:

  • backend → use backendTest
  • frontend → use frontendTest
  • other → use test --tests "*{argument}*"

Output

Report the test results from output.