搜索

PythonReactSEOPDF
GitHub Skill

judokon-test-author

Writes and updates automated tests for JU-DO-KON! using Vitest and Playwright. Use whenever logic, state, or behaviour changes.

CyanAutomation☆ 1 仓库 Stars0 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Skill Instructions

This skill makes verification mandatory.

Inputs / Outputs / Non-goals

  • Inputs: changed logic, affected features, relevant test locations.
  • Outputs: updated tests, coverage notes, targeted test commands.
  • Non-goals: full suite runs without need or DOM-mutation tests.

What this skill helps accomplish

  • Protect game logic from regressions
  • Validate state transitions and rules
  • Ensure feature flags behave correctly

When to use this skill

  • Adding or modifying battle logic
  • Changing state machines
  • Introducing new features or flags
  • Fixing bugs

Testing principles

  1. No logic change without tests
  2. Test behaviour, not implementation
  3. State transitions must be explicit
  4. Feature flags require on/off coverage

Test execution

  • Prefer targeted runs: npx vitest run tests/<path>.test.js
  • Use npm run test:battles:classic or npm run test:battles:cli when relevant.

DOM discipline

  • Do not mutate DOM directly in tests; use component APIs or user-level events.

Required test types

  • State transition tests
  • Rule evaluation tests
  • Feature flag toggle tests
  • Smoke tests for entry wiring

Expected output

  • New or updated test files
  • Clear test descriptions
  • Coverage-aware suggestions when gaps exist

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-01-26
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!