{"skill":{"slug":"code-tester","displayName":"Code Tester","summary":"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...","description":"---\nname: code-tester\ndescription: 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.\nmetadata: {\"clawdbot\":{\"command\":\"test_repo\"}}\n---\n\n# Code Tester\n\nTest code projects to verify builds and tests pass.\n\n## Workflow\n\nWhen asked to test changes:\n\n1. **Detect project type** in specified directory:\n   - Rust: `Cargo.toml` + `src/` directory\n   - Go: `go.mod`, `go.sum`, or `main.go`\n   - Java: `pom.xml` or `build.gradle` / `build.gradle.kts`\n\n2. **Run tests** (only if tests exist):\n   - Skip if no tests found\n   - Run project-specific test commands\n   - Capture test results\n\n3. **Build the project**:\n   - Run build commands\n   - Capture build output and errors\n\n4. **Report results**:\n   - Clear summary of what happened\n   - Test results (if run)\n   - Build status\n   - Any errors encountered\n\n## Communication Protocol\n\nWhen testing for another agent:\n\n**Format your report like:**\n\n```\nTesting: <directory>\nProject type: <rust|go|java>\nDetected tests: <yes|no>\n\n=== Results ===\n✓ Tests: <passed/skipped/failed>\n✓/✗ Build: <passed/failed>\n\n<Relevant error messages if any>\n```\n\n**If everything passes:**\n- Report success clearly\n- Provide next steps if needed\n\n**If something fails:**\n- Report what failed (tests or build)\n- Include error logs\n- Suggest what to fix\n\n## Running Tests\n\nExecute the test script:\n\n```bash\n/root/.openclaw/workspace/skills/code-tester/scripts/test.sh <directory>\n```\n\nThe script will:\n- Auto-detect project type\n- Run tests (if available)\n- Build the project\n- Return exit code 0 on success, 1 on failure\n\n## Testing Strategy\n\n- **Rust**: `cargo test` → `cargo build`\n- **Go**: `go test ./...` → `go build`\n- **Java Maven**: `mvn test` → `mvn compile`\n- **Java Gradle**: `./gradlew test` → `./gradlew build -x test`\n\nAlways run from the project directory. The script handles detection automatically.\n","tags":{"latest":"1.0.0"},"stats":{"comments":0,"downloads":391,"installsAllTime":14,"installsCurrent":0,"stars":0,"versions":1},"createdAt":1771510596040,"updatedAt":1779077138284},"latestVersion":{"version":"1.0.0","createdAt":1771510596040,"changelog":"Initial release of code-tester skill:\n\n- Supports Rust, Go, and Java project detection.\n- Automatically runs unit tests if available, then builds the project.\n- Reports test and build results, including error messages if failures occur.\n- Designed to integrate with agent workflows for automated code verification.\n- Includes a structured communication protocol for sharing results.","license":null},"metadata":{"setup":[],"os":null,"systems":null},"owner":{"handle":"frhn9","userId":"s175qcqqa63qqvd05rn5etbwd5885jbm","displayName":"frhn9","image":"https://avatars.githubusercontent.com/u/17489812?v=4"},"moderation":{"isSuspicious":true,"isMalwareBlocked":false,"verdict":"suspicious","reasonCodes":["suspicious.llm_suspicious"],"summary":"Detected: suspicious.llm_suspicious","engineVersion":"v2.4.24","updatedAt":1779077138284}}