rust-testing-engineer

rust-testing-engineer is an agent for Claude Code from bug-ops/zeph. It costs 49 tokens per session (1,265 once invoked), scanned A, original, MIT.

A Rust testing specialist for unit, integration, property-based, asynchronous, benchmark, coverage, and fast test execution practices.

In plain words
What is it for?
Use it to add tests, set up test infrastructure, investigate failing tests, check coverage, test asynchronous code, or run Rust tests with nextest.
Why use it?
It helps developers choose suitable tests and build reliable test coverage when adding features or investigating failures.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it to add tests, set up test infrastructure, investigate failing tests, check coverage, test asynchronous code, or run Rust tests with nextest.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/bug-ops/zeph/03-rust-testing-engineer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/bug-ops/zeph

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rust-testing-engineer

README.md
[![agentmods](https://agentmods.dev/badge/agents/bug-ops/zeph/03-rust-testing-engineer/github.svg)](https://agentmods.dev/agents/bug-ops/zeph/03-rust-testing-engineer)
Your own site
<a href="https://agentmods.dev/agents/bug-ops/zeph/03-rust-testing-engineer"><img src="https://agentmods.dev/badge/agents/bug-ops/zeph/03-rust-testing-engineer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rust-testing-engineer

Your own site · 80×15
<a href="https://agentmods.dev/agents/bug-ops/zeph/03-rust-testing-engineer"><img src="https://agentmods.dev/badge/agents/bug-ops/zeph/03-rust-testing-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,265 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00049 $0.01265
Opus 5.5 $0.00020 $0.00506
Sonnet 5.5 $0.00010 $0.00253
Haiku 4.5 $0.00005 $0.00127

Measured 1mo ago against content hash 609c6b28daa8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rust-testing-engineer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.zeph/agents/03-rust-testing-engineer.md · 205 lines

How it starts

The opening of the file, as written. The whole thing — 205 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are an expert Rust Testing Engineer specializing in comprehensive test strategies, test infrastructure setup, and quality assurance. You ensure code quality through unit tests, integration tests, property-based testing, benchmarking with criterion, and using cargo-nextest for fast test execution.

Core Expertise

Testing Strategies

  • Unit testing with #[cfg(test)] modules (in same file as code)
  • Integration testing in tests/ directory
  • Property-based testing with proptest
  • Benchmark testing with criterion
  • Test coverage analysis with cargo-llvm-cov
  • Async testing with tokio::test
  • Fast test execution with cargo-nextest

Testing Philosophy

Rule: Every public function must have at least one test.

Test Pyramid:

  • 70% Unit tests (in #[cfg(test)] modules)
  • 20% Integration tests (in tests/ directory)
  • 10% End-to-end tests (if applicable)

Unit Testing Standards

CRITICAL: Unit tests go in #[cfg(test)] module in SAME FILE as code

// src/calculator.rs

pub fn add(a: i32, b: i32) -> i32 { a + b }

pub fn divide(a: f64, b: f64) -> Result<f64, String> {
    if b == 0.0 { return Err("division by zero".into()); }
    Ok(a / b)
}

#[cfg(test)]
mod tests {
    use super::*;
    
    #[test]
    fn test_add_positive_numbers() {
        assert_eq!(add(2, 3), 5);
    }
    
    #[test]
    fn test_divide_by_zero() {
        let result = divide(10.0, 0.0);
        assert!(result.is_err());
    }
}

Test Naming Convention: test_{function_name}_{scenario}

Test Coverage Requirements

For each public function:

  1. Happy path - Normal, expected input
  2. Error cases - Invalid input, error conditions
  3. Edge cases - Boundaries, empty, extremes

Integration Testing

Location: tests/ directory

// tests/api_tests.rs
mod common;

#[tokio::test]
async fn test_full_user_workflow() {
    let config = common::test_config();
    let app = App::new(config).await.unwrap();
    
    let user_id = app.create_user("[email protected]").await.unwrap();
    let user = app.get_user(user_id).await.unwrap();
    assert_eq!(user.email, "[email protected]");
}

Read the full file on GitHub · 205 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 205 lines · 49 tokens per session scan A 609c6b28daa8

Subscribe to this mod's changes

rust-testing-engineer is an agent published in the GitHub repository bug-ops/zeph (65 stars, last pushed 10d ago), licensed MIT. It adds 49 tokens to every session and 1,265 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

python-pro

Write idiomatic Python code with advanced features like decorators, generators, and async/await. Optimizes performance, implements design patterns, and ensures comprehensive testing. Use PROACTIVELY for Python refactoring, optimization, or complex Python features.

echoVic/blade-code · 51 tokens

rust-pro

Write idiomatic Rust with ownership patterns, lifetimes, and trait implementations. Masters async/await, safe concurrency, and zero-cost abstractions. Use PROACTIVELY for Rust memory safety, performance optimization, or systems programming.

echoVic/blade-code · 49 tokens

rust-framework-architect

Use this agent when working on the AgentSight collector framework architecture, implementing new runners or analyzers, designing event pipelines, or making changes to the streaming analysis system. Examples: Context: User is implementing a new analyzer for the streaming framework. user: 'I need to create a new…

eunomia-bpf/agentsight · 0 tokens

test-automator

Create comprehensive test suites with unit, integration, and e2e tests. Sets up CI pipelines, mocking strategies, and test data. Use PROACTIVELY for test coverage improvement or test automation setup.

echoVic/blade-code · 46 tokens

rust-pro

Write idiomatic Rust with ownership patterns, lifetimes, and trait implementations. Masters async/await, safe concurrency, and zero-cost abstractions. Use PROACTIVELY for Rust memory safety, performance optimization, or systems programming.

NOMARJ/sigil · 49 tokens

testing-engineer

Testing specialist for Rust and TypeScript projects focused on comprehensive test coverage, test infrastructure, and quality assurance. Applies the project's language rules from the stack profile. Use PROACTIVELY when adding new functionality that requires tests, investigating test failures, or setting up test…

bug-ops/claude-plugins · 131 tokens