| name | inspect-test |
| description | Inspect Gradle/Kotlin test results and failing tests using the self-contained inspect-test.init.gradle.kts init script, without needing the dev-tools plugin applied to the target project. Use whenever a Gradle test task has run (or failed) and you need to see which tests failed and their stack traces. |
Inspect Test
Read failing tests straight from Gradle's JUnit XML reports
(build/test-results/**/TEST-*.xml) via the inspectTest task, applied through the
self-contained init script inspect-test.init.gradle.kts.
No plugin resolution, network access, or version pinning is required, and no target project
build file needs to be modified.
Always pass -q/--quiet to ./gradlew — the task and the wired test listener are designed
to produce clean, token-efficient output only under quiet mode.
Setup
This skill bundles a self-contained copy of inspect-test.init.gradle.kts (see
inspect-test.init.gradle.kts). Point --init-script at its
absolute path from the target repository — no plugin resolution, network access, or copying
into the target project is required:
./gradlew --init-script /absolute/path/to/.agents/skills/inspect-test/inspect-test.init.gradle.kts -q inspectTest
The init script registers inspectTest on the root project and every subproject, and wires a
failing-test summary onto every Test task in the build. Target a specific module with a task
path, e.g. :app:inspectTest.
Workflow
-
Run the relevant test task first (a test task must have produced XML
reports before has anything to read):