Run Rust Tests
Executes Rust unit tests against provided code, reporting results and errors to facilitate backend development.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add run-rust-tests npx -- -y @trustedskills/run-rust-tests
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"run-rust-tests": {
"command": "npx",
"args": [
"-y",
"@trustedskills/run-rust-tests"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill executes Rust unit and integration tests directly within an AI agent's workflow. It validates code correctness by running the test suite defined in your project, providing immediate feedback on compilation errors or logic failures before deployment.
When to use it
- Pre-commit validation: Automatically verify changes against the existing test suite before merging code into a branch.
- CI/CD integration: Trigger test execution as part of an automated pipeline to ensure new features do not break existing functionality.
- Local debugging: Run specific test files or suites to isolate and resolve bugs in a development environment.
- Dependency verification: Ensure that newly added crates or dependencies function correctly with the current codebase.
Key capabilities
- Executes Rust test binaries using
cargo test. - Supports running specific test names or filtering by file paths.
- Captures and reports standard output, error messages, and exit codes.
- Integrates seamlessly with existing Cargo project structures.
Example prompts
- "Run the full test suite for my Rust backend service and summarize any failures."
- "Execute only the integration tests related to the Redis connection module."
- "Run the tests after I updated the database schema migration logic."
Tips & gotchas
Ensure your project has a valid Cargo.toml file in the working directory, as the skill relies on standard Rust tooling. If tests fail due to missing environment variables or external services, configure those prerequisites before execution.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.