Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

auto-test-generator

bởi autogame-17

Coding Agents & IDEs
590Lượt tải do clawskills.sh công bố
4Sao
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Automatically generate basic unit/integration tests for OpenClaw skills.

Mô tả

Kỹ năng này làm gì

Generates basic unit and integration tests for OpenClaw skills. It scans a skill directory, analyzes index.js exports, and writes a test.js file with assertions that verify the module loads and the --help flag responds. The test runs immediately after generation.

Writing a test scaffold from scratch for each skill is repetitive; this handles the boilerplate and executes the tests in a single command.

Khi nào nên dùng

  • Bootstrapping test coverage for a newly written skill
  • Catching regressions after modifying a skill's core logic
  • Verifying a skill loads without errors after dependency updates
  • Adding baseline assertions before submitting a skill for code review
  • Checking --help output still works after refactoring

Quy trình ví dụ

ĐẦU VÀO

User asks: generate tests for the skill-health-monitor skill

AGENT
  1. 1

    Scans the skills/skill-health-monitor/ directory

  2. 2

    Analyzes index.js to identify exported functions

  3. 3

    Generates a test.js file with module load and --help assertions

  4. 4

    Runs the generated test file immediately

  5. 5

    Reports pass or fail with output

ĐẦU RA

Creates skills/skill-health-monitor/test.js and prints a success or failure report

Cài đặt

clawhub install autogame-17/auto-test-generator

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết