スキル一覧に戻る
Technikhighknee

test-runner

by Technikhighknee

A toolbelt of MCP server that help agents to work with code.

0🍴 0📅 2025年12月4日
GitHubで見るManusで実行

SKILL.md


test-runner

Tests that tell you WHAT failed, WHERE (with source maps), and WHY (expected vs actual).

First: run_tests

After any code change:

run_tests({})

Why This Wins

The ProblemBuilt-in Failuretest-runner Solution
Run testsnpm test output needs parsingrun_tests returns structured pass/fail
Find failuresScroll through outputget_test_failures gives exact locations
Stack tracesPoint to compiled JSSource-mapped to your TypeScript
Rerun failedRemember which failedrerun_failed handles it

Quick Reference

TaskTool
Run all testsrun_tests({})
Run specific filerun_tests({ files: ['auth.test.ts'] })
Run by namerun_tests({ testNamePattern: 'email' })
Find tests for a source filefind_tests_for({ source_file: 'src/api.ts' })
Run tests for a source filerun_related_tests({ source_file: 'src/api.ts' })
Get failure detailsget_test_failures({})
Retry failures onlyrerun_failed({})
Find test fileslist_test_files({})

Common Workflows

// BEFORE editing - know what tests exist
find_tests_for({ source_file: 'src/api.ts' })

// ... make your changes ...

// AFTER editing - run only the relevant tests (fast!)
run_related_tests({ source_file: 'src/api.ts' })

Why this workflow?

  • find_tests_for tells you what's covered BEFORE you edit
  • run_related_tests is faster than run_tests({}) - only runs relevant tests
  • Multiple discovery strategies: naming convention, import analysis, co-location

After Making Changes

run_tests({})

Fixing Failing Tests

run_tests({})
get_test_failures({})  // Shows expected vs actual, source locations
// ... fix code ...
rerun_failed({})  // Verify fix without running all tests

Run Specific Tests

run_tests({ files: ['src/auth.test.ts'] })
run_tests({ testNamePattern: 'should validate' })

Targeted Testing After Edits

// Edited server.ts? Find and run its tests:
run_related_tests({ source_file: 'src/server.ts' })

Integration

Run run_tests after using syntax.edit_symbol and types.get_diagnostics to verify behavior unchanged.

Supports

Vitest, Jest (auto-detected)

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です