meridian-test-writer

Generate scenario-first xUnit tests for Meridian components with quality guardrails.

Updated Mar 23, 2026
One-click install
npx skills add https://github.com/rodoHasArrived/Meridian-main --skill meridian-test-writer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: meridian-test-writer
Source: https://github.com/rodoHasArrived/Meridian-main/tree/main/.agents/skills/meridian-test-writer
Command: npx skills add https://github.com/rodoHasArrived/Meridian-main --skill meridian-test-writer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It removes the guesswork and inconsistency of writing tests by turning “write unit tests” into realistic, scenario-first xUnit test cases that match Meridian’s own quality standards.

Core Features & Use Cases

  • Scenario-First Test Generation: Builds tests around named market scenarios that exercise real production-style code paths (often across multiple layers).
  • Meridian-Specific Quality Guardrails: Enforces xUnit correctness (no async void), cancellation timeouts, proper async disposal, isolation (no shared mutable state), and storage/file cleanup practices.
  • Pattern-Based Coverage Strategy: Guides which test pattern to apply (including Pattern I: Market Scenario Simulation) based on the component type and expected behavior.
  • Code-Review Alignment: Structures outputs to satisfy the meridian-code-review Lens 4 (Test Code Quality) checklist, reducing iteration cycles.

Quick Start

Use the skill to write new xUnit tests for the identified Meridian component with the specified market scenario and ensure the resulting tests follow the scenario-first rules and Lens 4 quality checks.

Frequently Asked Questions about meridian-test-writer

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

FAQPage Schema
How do I generate xUnit tests that simulate real market events for trading pipelines?

Generate xUnit tests by applying a scenario-first approach that exercises real production-style code paths across provider ingestion, pipeline/storage, and execution seams using named market simulations. It enforces Meridian-specific quality guardrails like async correctness and observable assertions.

What is the best way to write FluentAssertions tests for F# interop components?

Writing FluentAssertions tests for F# interop components is best handled by generating scenario-first xUnit tests that apply Pattern I multi-layer market simulations. The generated tests follow strict isolation and naming conventions to ensure consistent observable assertions.

How do I stop async void issues and missing cancellation timeouts in my xUnit tests?

To stop async void issues and enforce cancellation timeouts in xUnit tests, generate them using built-in quality guardrails that mandate async correctness, proper await using disposal, and strict isolation. This prevents common test anti-patterns automatically.

Can I use scenario-first testing for WPF UI services and endpoint integrations?

Yes, you can use scenario-first testing for WPF UI services and endpoint integrations. The test generator applies market-event simulations across these specific component seams while enforcing proper file cleanup practices and observable assertions.

Does generating tests this way align with standard code review checklists for test quality?

Generating tests this way aligns directly with Lens 4 Test Code Quality checklist requirements. The structured outputs satisfy the code review criteria by enforcing naming conventions, cancellation timeouts, isolation, and proper async disposal automatically.

What limitations exist when using market simulation patterns for pipeline storage testing?

Limitations include strict dependencies on following Meridian test quality rules, requiring proper await using disposal and no shared mutable state. Tests must adhere to these architectural constraints to successfully execute the bundled Pattern I multi-layer scenario simulations.