smithery.ai

java-test

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.

First seen May 2, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Allowed toolsBash(./gradlew test:*), Bash(./gradlew:*), Bash(cmd.exe:*), Bash(python:*), Bash(cat:*)

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,179 B
  • docs SUMMARY.md 190 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

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:

  1. Status: PASSED or FAILED
  2. Counts: X tests, Y passed, Z failed
  3. 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