Provides instructions to run the unit tests for project in a consistent and cost efficient way
Installation
Details
Usage
After installing, this skill will be available to your AI coding assistant.
Verify installation:
npx agent-skills-cli listSkill Instructions
name: run-unit-tests description: Provides instructions to run the unit tests for project in a consistent and cost efficient way
Run Unit Tests
We provide a wrapper script around Gradle that provides concise, token-efficient output for test execution. This is especially useful for AI agents running tests.
Usage:
# Run all tests in the project
./bin/run_tests.main.kts
# Run tests for a specific module
./bin/run_tests.main.kts -m persistence
# Run a specific test
./bin/run_tests.main.kts -t "MongoDBSaveGameRepositoryTest.should save and retrieve a save game"
Output Behavior:
- Success (exit 0): Prints
✓ All tests passed successfully - Compilation Error (exit 1): Shows full Gradle output with compilation error details
- Test Failure (exit 1): Shows concise failure information:
- Test class and method name
- Failure message (truncated if too long)
- Relevant stack trace lines (framework noise filtered out)
Example Success:
✓ All tests passed successfully
Example Test Failure:
✗ Build/tests failed
Failed Tests (1):
1. io.dungeons.persistence.mongodb.MongoDBSaveGameRepositoryTest.should save and retrieve a save game()
Message: expected: <wrong-id> but was: <Id(value=a5638bd6-0aa8-474b-8b92-8bc859be044e)>
Stack trace:
org.opentest4j.AssertionFailedError: expected: <wrong-id> but was: <Id(value=a5638bd6...)>
at kotlin.test.junit5.JUnit5Asserter.assertEquals(JUnitSupport.kt:32)
at kotlin.test.AssertionsKt__AssertionsKt.assertEquals(Assertions.kt:63)
Example Compilation Error:
✗ Build/tests failed
Compilation error detected. Gradle output:
> Task :persistence:compileTestKotlin FAILED
e: file:///.../MongoDBSaveGameRepositoryTest.kt:14:18 Unresolved reference 'undefinedVariable'.
FAILURE: Build failed with an exception.
...
More by majiayu000
View allDeploys PostgreSQL on Kubernetes using the CloudNativePG operator with automated failover. Use when setting up PostgreSQL for production workloads, high availability, or local K8s development. Covers operator installation, cluster creation, connection secrets, and backup configuration. NOT when using managed Postgres (Neon, RDS, Cloud SQL) or simple Docker containers.
Use when Codex needs to run CI/CD or cross-service automations through the Composio MCP server.
Clean up git branches by analyzing merged/unmerged status, archiving completed work, and organizing active branches. This skill should be used when the user wants to clean up branches, organize their git repository, or review branch status. Triggered by "/clean-branches", "/branches", "clean branches", "check branches", "check branch", or "branches".
Develop with Nix including packages, flakes, NixOS, and derivations. Activate when working with .nix files, flake.nix, flake.lock, or user mentions Nix, nixpkgs, NixOS, derivations, flakes, nix-shell, nix develop, home-manager, or packaging.
