Install
openclaw skills install code-testerClawHub Security found sensitive or high-impact capabilities. Review the scan results before using.
Build, run, and test code projects for Rust, Go, and Java. Automatically detect project type, run unit tests if available, and report build status. Use after code changes to verify that project builds successfully, unit tests pass if they exist, and application runs without errors. Communicate results back to the requesting agent for fixing and re-testing.
openclaw skills install code-testerTest code projects to verify builds and tests pass.
When asked to test changes:
Detect project type in specified directory:
Cargo.toml + src/ directorygo.mod, go.sum, or main.gopom.xml or build.gradle / build.gradle.ktsRun tests (only if tests exist):
Build the project:
Report results:
When testing for another agent:
Format your report like:
Testing: <directory>
Project type: <rust|go|java>
Detected tests: <yes|no>
=== Results ===
✓ Tests: <passed/skipped/failed>
✓/✗ Build: <passed/failed>
<Relevant error messages if any>
If everything passes:
If something fails:
Execute the test script:
/root/.openclaw/workspace/skills/code-tester/scripts/test.sh <directory>
The script will:
cargo test → cargo buildgo test ./... → go buildmvn test → mvn compile./gradlew test → ./gradlew build -x testAlways run from the project directory. The script handles detection automatically.