AgentSkillsCN

run-tests

运行并验证 Yui 协议的测试。在代码更改、错误修复或验证功能后使用。

SKILL.md
--- frontmatter
name: run-tests
description: Run and validate tests for the Yui Protocol. Use after code changes, bug fixes, or when verifying functionality.
allowed-tools: Bash, Read, Glob, Grep
model: haiku

Run Tests Skill

テストを実行して結果を検証するスキル。

コマンド

bash
# 単体テスト(推奨)
npm run test

# カバレッジ付き
npm run test:coverage

# UIモード
npm run test:ui

E2Eテスト

bash
npm run test:console
npm run test:system
npm run test:progression

失敗時の対応

  1. エラーメッセージを確認
  2. 関連するソースファイルを読む
  3. テストファイル(*.test.ts)を確認
  4. 修正後、再度テスト実行

テストファイルの場所

  • src/**/*.test.ts - 単体テスト
  • selenium-tests/*.cjs - E2Eテスト