← スキル一覧に戻る

mojo-test-runner
by mvillmow
Training framework written in Mojo
⭐ 11🍴 4📅 2026年1月24日
SKILL.md
name: mojo-test-runner description: "Run Mojo tests using mojo test command. Use when executing tests or verifying test coverage." mcp_fallback: none category: mojo agent: test-engineer user-invocable: false
Mojo Test Runner Skill
Execute Mojo tests with filtering and reporting.
When to Use
- Running Mojo test suites
- Verifying implementation correctness
- TDD red-green-refactor cycle
- Checking test coverage before PR
Quick Reference
# Run all tests
mojo test tests/
# Run specific file
mojo test tests/test_tensor.mojo
# Run with verbose output
mojo test -v tests/
# Run tests matching pattern
./scripts/run_tests.sh tensor
Workflow
- Run tests - Execute
mojo testor script - Review output - Check pass/fail summary
- Fix failures - Address failing tests
- Re-run tests - Verify all pass
Mojo-Specific Notes
- Test functions must start with
test_ - Test files must match
test_*.mojoor*_test.mojo - Tests run independently - no shared state between tests
- Use
raiseskeyword for exception testing
Error Handling
| Error | Cause | Solution |
|---|---|---|
Import error | Module not found | Verify -I include paths |
Syntax error | Invalid test code | Fix syntax before testing |
Timeout | Test too slow | Optimize or increase timeout |
Memory error | Ownership issue | Check ownership and borrowing |
References
.claude/shared/mojo-anti-patterns.md- Common test mistakes/notes/review/- Testing strategy documentation
スコア
総合スコア
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
レビュー
💬
レビュー機能は近日公開予定です