test-generator

Generate xUnit-based unit and integration tests for .NET projects.

Updated Dec 31, 2025
One-click install
npx skills add https://github.com/ademceper/merge --skill test-generator-ademceper
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-generator
Source: https://github.com/ademceper/merge/tree/main/server/.cursor/skills/test-generator
Command: npx skills add https://github.com/ademceper/merge --skill test-generator-ademceper

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the creation of unit and integration tests for .NET projects, reducing manual test boilerplate and ensuring consistent test coverage.

Core Features & Use Cases

  • Unit Test (Handler) templates: Scaffolds standard unit tests for command/handler patterns using xUnit, FluentAssertions, and NSubstitute.
  • Entity Tests: Generates tests for entity validation and domain events.
  • Integration Tests: Creates API controller or endpoint tests to validate HTTP interactions.

Quick Start

Request test skeletons for a specific command or entity and run the generated templates locally to integrate with your existing test project.

Frequently Asked Questions about test-generator

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

FAQPage Schema
How do I generate xUnit tests for .NET handlers and services?

To generate xUnit tests for .NET handlers and services, request test skeletons for your specific command or entity. The Skill produces complete templates using xUnit, FluentAssertions, and NSubstitute following AAA patterns for both happy and sad paths.

Can I automatically scaffold integration tests for .NET API controllers?

Yes, you can automatically scaffold integration tests for .NET API controllers. The Skill creates endpoint tests to validate HTTP interactions using xUnit and FluentAssertions, accelerating integration test coverage across modular domains.

Does this test generator work with FluentAssertions and NSubstitute?

Yes, this test generator works with FluentAssertions and NSubstitute. The generated test templates rely on these libraries alongside xUnit to produce robust unit and integration tests following standard AAA patterns.

What is the best way to automate unit test creation for .NET domain entities?

The best way to automate unit test creation for .NET domain entities is to generate entity test templates. The Skill scaffolds tests for entity validation and domain events using xUnit and FluentAssertions, reducing manual boilerplate.

How to create unit test templates that include happy and sad path examples?

To create unit test templates with happy and sad path examples, request test skeletons for your command or handler patterns. The Skill generates xUnit-based templates following AAA patterns that explicitly provide both successful and failure scenario coverage.