# Test Rust

> >

- **Type:** Skill
- **Install:** `agentstack add skill-d-oit-rust-2026-template-test-rust`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [d-oit](https://agentstack.voostack.com/s/d-oit)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [d-oit](https://github.com/d-oit)
- **Source:** https://github.com/d-oit/rust-2026-template/tree/main/.agents/skills/test-rust
- **Website:** https://d-oit.github.io/rust-2026-template/

## Install

```sh
agentstack add skill-d-oit-rust-2026-template-test-rust
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Skill: test-rust

## When to Use

- User asks for this skill's functionality

## Purpose

Run the complete test suite for a Rust project using best practices.

## Prerequisites

- `cargo nextest` (`cargo install cargo-nextest`)
- `cargo llvm-cov` for coverage (`cargo install cargo-llvm-cov`)

## Steps

### 1. Unit + integration tests

```bash
cargo nextest run --all-features --workspace
```

### 2. Doc tests

```bash
cargo test --doc --all-features
```

### 3. With coverage

```bash
cargo llvm-cov nextest --all-features --workspace --html
```

### 4. Report metrics

Call `metrics-reporter` skill.

## Test Organization

```
src/lib.rs          # #[cfg(test)] mod tests {}
tests/              # Integration tests
benches/            # Criterion benchmarks
```

## Success Criteria

- All tests pass
- Doc tests pass
- Coverage >= 80%

## Related Skills

- `build-rust`, `lint-rust`, `release-rust`, `metrics-reporter`

## Rationalizations

| Rationalization | Reality |
|-----------------|---------|
| "Unit tests pass, so the code is correct." | Unit tests don't catch integration issues. Run doc tests and integration tests too. |
| "Coverage is at 50%, that's probably fine." | Below 80% coverage leaves significant untested code paths. |
| "I'll skip doc tests — they're just examples." | Doc tests are compiled and run. They catch stale documentation and API mismatches. |

## Red Flags

- [ ] Running `cargo test` without `--all-features` (hides feature-gated test failures)
- [ ] Skipping doc tests (`cargo test --doc`)
- [ ] Not using `cargo-nextest` for parallel test execution

## References

- [cargo-nextest](https://nexte.st/)
- [cargo-llvm-cov](https://github.com/taiki-e/cargo-llvm-cov)

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [d-oit](https://github.com/d-oit)
- **Source:** [d-oit/rust-2026-template](https://github.com/d-oit/rust-2026-template)
- **License:** MIT
- **Homepage:** https://d-oit.github.io/rust-2026-template/

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-d-oit-rust-2026-template-test-rust
- Seller: https://agentstack.voostack.com/s/d-oit
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
