test-generator

Generate deterministic golden fixtures and Rust tests for dirctl components.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/DaniyalFaraz2003/dirctl --skill test-generator-daniyalfaraz2003
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-generator
Source: https://github.com/DaniyalFaraz2003/dirctl/tree/main/.claude/skills/test-generator
Command: npx skills add https://github.com/DaniyalFaraz2003/dirctl --skill test-generator-daniyalfaraz2003

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generate deterministic golden fixtures and corresponding Rust tests for the core dirctl components (planner, scanner, executor), enabling stable regressions and reproducible results.

Core Features & Use Cases

  • Create fixture directories under tests/fixtures/<name>/ with snapshot data.
  • Auto-generate integration tests under crates/dirctl-core/tests/ that load the fixture, run the pipeline, and compare Plan JSON.
  • Use deterministic timestamps via test helpers to ensure reproducible diffs across runs.

Quick Start

Create a deterministic golden fixture under tests/fixtures named after your scenario and generate the matching integration test.

Frequently Asked Questions about test-generator

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

FAQPage Schema
How do I generate deterministic Rust integration tests for directory control components?

To generate deterministic Rust integration tests, this Skill creates golden fixture directories under tests/fixtures/ and auto-generates matching integration tests in crates/dirctl-core/tests/ that load fixtures, run the pipeline, and compare Plan JSON outputs for stable regression testing.

What is snapshot-driven regression testing for Rust planners and scanners?

Snapshot-driven regression testing for Rust planners and scanners involves creating deterministic golden fixtures that capture expected outputs, enabling reproducible diffs across builds. This Skill generates those fixtures and corresponding tests to ensure scanner and executor components produce stable, comparable Plan JSON results.

Can I use deterministic timestamps to ensure reproducible test diffs across builds in Rust?

Yes, you can use deterministic timestamps to ensure reproducible test diffs across builds in Rust. This Skill applies test helpers that inject fixed timestamps into generated golden fixtures, guaranteeing that integration tests for dirctl planner and executor components yield consistent snapshot comparisons.

How do I set up golden fixtures for Rust integration tests comparing Plan JSON outputs?

Setting up golden fixtures for Rust integration tests involves creating snapshot data under tests/fixtures/<name>/ and generating corresponding tests that execute the dirctl pipeline. This Skill automates that scaffolding, producing tests that load fixtures and compare Plan JSON outputs for regression validation.

Does this test-generation approach work for dirctl planner, scanner, and executor components?

Yes, this test-generation approach works for dirctl planner, scanner, and executor components. The Skill specifically targets the core dirctl engine components, generating deterministic golden fixtures and integration tests that validate the pipeline's Plan JSON outputs across all three component stages.

What are the limitations of using golden fixtures for Rust regression testing?

A limitation of using golden fixtures for Rust regression testing is that any intentional change to dirctl planner or scanner logic requires regenerating the fixture snapshots. This approach verifies deterministic Plan JSON output against static data rather than testing dynamic or time-sensitive behaviors.