run-rust-tests

Run Rust tests selectively or fully using cargo nextest.

6.2k|590|Updated May 5, 2016
One-click install
npx skills add https://github.com/RediSearch/RediSearch --skill run-rust-tests
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: run-rust-tests
Source: https://github.com/RediSearch/RediSearch/tree/main/.skills/run-rust-tests
Command: npx skills add https://github.com/RediSearch/RediSearch --skill run-rust-tests

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Developers often need to verify correctness of Rust changes by running tests, but doing this manually across crates can be slow and error-prone.

Core Features & Use Cases

  • Selective testing: run tests for affected crates only by inspecting modified files.
  • All-crate testing: run the full test suite with a single command.
  • Targeted testing: run tests for a specific crate or a specific test within a crate.
  • Git-aware workflows: map changes to crates using git diff and integrate with cargo nextest.

Quick Start

After modifying Rust code, run the tests with these examples:

  • Run all tests: cd src/redisearch_rs && cargo nextest run
  • Run tests for a specific crate: cd src/redisearch_rs && cargo nextest run -p <crate_name>
  • Run a specific test: cd src/redisearch_rs && cargo nextest run -p <crate_name> <test_name>
  • Run tests for multiple crates: cd src/redisearch_rs && cargo nextest run -p <crate1> -p <crate2>