run-tests

Run cargo test, fmt, and clippy for the cx CLI codebase.

114|10|Updated Mar 29, 2026
One-click install
npx skills add https://github.com/coralogix/cx-cli --skill run-tests-coralogix
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: run-tests
Source: https://github.com/coralogix/cx-cli/tree/main/.claude/skills/run-tests
Command: npx skills add https://github.com/coralogix/cx-cli --skill run-tests-coralogix

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Streamlines running tests, linting, and verification for the cx CLI codebase.

Core Features & Use Cases

  • Test execution: Run unit and integration tests across the repository with cargo test, including filtered test selection.
  • Linting & formatting: Enforce code quality with cargo fmt and cargo clippy to catch style and correctness issues.
  • CI alignment: Mirror CI checks locally to validate changes before opening a PR, reducing feedback cycles.
  • What to run after a change: Guidance on steps to re-run tests, format, and lint after code changes.

Quick Start

Run cargo test, cargo fmt, and cargo clippy to verify changes before merging.

Frequently Asked Questions about run-tests

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run cargo tests and linting locally before opening a Rust PR?

You can run filtered tests with cargo test by specifying the test name, allowing targeted execution of unit and integration tests across the repository to verify specific changes without running the entire suite.

What's the best way to validate Rust CI checks locally for the cx CLI codebase?

The best way to align local development with CI is running standardized checks using cargo build, cargo test, cargo fmt, and cargo clippy, validating changes locally before merging to reduce CI feedback cycles.

Does this Skill guide what to run after making code changes to a Rust project?

Yes, the Skill provides guidance on the necessary steps to re-run tests, format the code, and lint after making changes, ensuring code quality and correctness are verified before submission.

Can I use cargo clippy and cargo fmt to enforce code quality in my Rust CI workflow?

Yes, you can enforce code quality by running cargo fmt to catch style issues and cargo clippy to identify correctness problems, integrating these commands into your CI workflow for standardized checks.

When do I need to run cargo build alongside cargo test and cargo fmt?

You need to run cargo build as part of standardized CI checks to verify the codebase compiles successfully, complementing cargo test for test execution and cargo fmt for formatting validation.