Code Testing

Run unit and integration tests via justfile tasks in Rust workspaces.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/edgeandnode/amp --skill code-testing-edgeandnode
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Code Testing
Source: https://github.com/edgeandnode/amp/tree/main/.claude/skills/code-test
Command: npx skills add https://github.com/edgeandnode/amp --skill code-testing-edgeandnode

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the process of running tests, ensuring that new features or bug fixes don't introduce regressions or break existing functionality. It provides specialized commands for local development, avoiding the need for complex external dependencies.

Core Features & Use Cases

  • Local-Only Testing: Run tests that don't require external services (like databases) using just test-local, ideal for rapid local development.
  • Comprehensive Test Suites: Execute unit, integration, and package-specific tests across the entire Rust workspace.
  • Cargo Nextest Integration: Leverages cargo-nextest for faster, more efficient parallel test execution.
  • Use Case: After implementing a new feature, use just test-local to quickly verify its functionality and ensure no local-only tests are broken, saving time by not waiting for full integration tests.

Quick Start

Run all local tests for the project to ensure recent changes haven't introduced any issues.

Frequently Asked Questions about Code Testing

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

FAQPage Schema
How do I run tests in a Rust workspace to catch regressions?

Unit and integration tests validate code changes across a Rust workspace. Use justfile tasks to run tests locally without external dependencies, or execute full test suites via cargo-nextest for faster parallel execution, automatically falling back to cargo test when nextest isn't available.

What's the fastest way to run Rust tests during development?

Cargo-nextest accelerates test execution through parallel processing. This Skill leverages nextest when installed and falls back to cargo test, letting you choose between rapid local-only tests for quick feedback and comprehensive test runs for full validation.

Can I run tests without external service dependencies in Rust?

Yes. Local-only testing via `just test-local` runs unit and integration tests that don't require external services like databases, ideal for rapid development cycles and verifying recent changes without integration overhead.

How do I automate testing across multiple packages in a Rust workspace?

This Skill automates validation by running package-scoped, unit, and integration tests across your entire Rust workspace through justfile tasks, ensuring no regressions in any package when features or fixes are implemented.

What testing approach works for both local development and CI/CD pipelines?

The Skill provides specialized commands for local development and CI workflows, supporting local-only tests for rapid feedback and full test runs for comprehensive validation, while documenting external-dependency requirements for both environments.