Skip to content
Back to skills

Write Rust Tests

ASecurity

Write Rust tests to verify correctness of Rust code.

  • 8 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 29, 2026
testingrustapi

Works with

  • api

Security analysis

A100/100

Scanned May 29, 2026

npx -y skills add zjunlp/Skills --skill write-rust-tests --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Write Rust Tests?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Write Rust Tests
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/zjunlp-write-rust-tests/badge)](https://www.skillsdirectory.com/skills/zjunlp-write-rust-tests)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: write-rust-tests
description: Write Rust tests to verify correctness of Rust code.
---

# Write Rust Tests

Write new Rust tests for Rust code.

## Arguments
- `<path>`: Path to the Rust crate or file.
- `<path 1> <path 2>`: Multiple crate/file paths.

If a path doesn't include `src/`, assume it to be in the `src/redisearch_rs` directory. E.g. `numeric_range_tree` becomes `src/redisearch_rs/numeric_range_tree`.
If a path points to a directory, consider all Rust files in that directory.

## Guidelines

The generated tests must follow the guidelines outlined in [/rust-tests-guidelines](../rust-tests-guidelines/SKILL.md).

## What to test

Ensure that all public APIs are tested thoroughly, including edge cases, error conditions and branches.
Use [`/check-rust-coverage`](../check-rust-coverage/SKILL.md) to determine which lines are not covered by tests.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…