add_tests

Add or update Rust regression tests for the RARA codebase.

15|1|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/linkerdog/rara --skill add-tests-linkerdog
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add_tests
Source: https://github.com/linkerdog/rara/tree/main/.agents/skills/add_tests
Command: npx skills add https://github.com/linkerdog/rara --skill add-tests-linkerdog

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you turn behavior changes and bug fixes in RARA into reliable, repeatable automated checks so regressions don’t reappear later.

Core Features & Use Cases

  • Add focused Rust test coverage: write narrow unit, TUI state/event, or rendering tests that target the exact failure mode.
  • Use regression-first methodology: reproduce the bug with the smallest realistic fixture, then assert the corrected behavior as a stable contract.
  • Prefer structured assertions: verify typed state, events, and render outputs (including snapshots when the UI layout is the contract), while avoiding brittle debug-text checks.

Quick Start

Ask the AI to add or update tests for the change you’re making in the RARA codebase, reproducing the regression with the smallest possible test and running the narrowest relevant cargo test target.

Frequently Asked Questions about add_tests

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

FAQPage Schema
How do I add regression tests for Rust TUI state and event routing changes?

To add regression tests for Rust TUI state and event routing, reproduce the bug with the smallest realistic fixture, then assert the corrected typed state and events as a stable contract using isolated test targets.

What is the best way to write focused unit tests for agent runtime transcript regressions?

Writing focused unit tests for agent runtime transcript regressions involves capturing the real failure, isolating temp filesystem state, and applying structured assertions over brittle text matching to enforce stable behavior contracts.

When should I use snapshot testing for TUI rendering checks?

Use snapshot testing for TUI rendering checks when the UI layout itself serves as the behavior contract, ensuring focused rendering validations capture exact output changes without relying on fragile debug text matching.

Can I weaken a failing test if the structured assertions are too strict for CI?

You must classify CI failures before weakening tests, ensuring that any adjustment to structured assertions or isolated fixtures is justified by a genuine contract change rather than masking a real regression.

Do I need to isolate filesystem state for Rust unit tests targeting agent runtime behavior?

Yes, isolating filesystem state using temp fixtures is required for Rust unit tests targeting agent runtime behavior, preventing cross-test contamination and enforcing precise, repeatable regression checks.