
java-test
by joshcanfield
Scoreboard software for Bremerton Ice Center
SKILL.md
name: java-test description: Run Java tests with Gradle and summarize results. Shows only failures and key statistics. Use when testing Java code, validating backend changes, or debugging test failures. allowed-tools: Bash(./gradlew test:), Bash(./gradlew:), Bash(cmd.exe:), Bash(python:), Bash(cat:*)
Java Test Runner
Run Java tests and return a concise summary with only failures and statistics.
Context Reduction Strategy
IMPORTANT: To minimize context usage, use one of these approaches:
Option 1: Use Task Agent (Recommended for Large Output)
Use the Task tool with subagent_type=Explore to run tests in a separate context:
Task: Run ./gradlew test --no-daemon and summarize results. Report only:
- Total tests, passed, failed, skipped counts
- Each failure with class.method name and assertion message (max 5 lines each)
- Do NOT include passing tests or full stack traces
Option 2: Pipe Through Parse Script
Run tests and pipe through the parsing script to extract only failures:
./gradlew test --no-daemon 2>&1 | python scripts/parse-test-output.py --gradle
Option 3: Direct Run with Manual Summary
Run tests, then summarize the key information yourself:
./gradlew test --no-daemon
After running, report ONLY:
- Status: PASSED or FAILED
- Counts: X tests, Y passed, Z failed
- Failures: Class.method + assertion message (first 5 only)
Commands
Run all tests:
./gradlew test --no-daemon
Run specific test class:
./gradlew test --tests "canfield.bia.hockey.v2.engine.GameEngineTest" --no-daemon
Run with verbose test output:
./gradlew test --no-daemon --console=plain
Read test report for detailed counts:
cat build/reports/tests/test/index.html | grep -E "(tests|failures|passed)"
Output Guidelines
DO NOT include in response:
- Full Gradle task output (compileJava, processResources, etc.)
- Passing test names
- Full stack traces (max 5 lines)
- Download progress messages
DO include in response:
- Overall status
- Test counts
- Each failure with concise details
- Actionable next steps
スコア
総合スコア
リポジトリの品質指標に基づく評価
SKILL.mdファイルが含まれている
ライセンスが設定されている
100文字以上の説明がある
GitHub Stars 100以上
3ヶ月以内に更新がある
10回以上フォークされている
オープンIssueが50未満
プログラミング言語が設定されている
1つ以上のタグが設定されている
レビュー
レビュー機能は近日公開予定です