test-generation

Generate ExUnit test suites with unit, property-based, and GenServer patterns.

1|1|Updated Jan 3, 2026
One-click install
npx skills add https://github.com/layeddie/ai-rules --skill test-generation-layeddie
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-generation
Source: https://github.com/layeddie/ai-rules/tree/main/skills/test-generation
Command: npx skills add https://github.com/layeddie/ai-rules --skill test-generation-layeddie

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Writing reliable tests for Elixir features can be lengthy and error-prone; this skill accelerates test creation by generating comprehensive ExUnit tests aligned with a Test-Driven Development workflow.

Core Features & Use Cases

  • Automated test scaffolding: Generates unit tests, property-based tests, and GenServer tests for common feature patterns.
  • TDD-driven workflow guidance: Provides Red-Green-Refactor examples to illustrate the cycle and ensure test-driven progress.
  • Consistent test organization: Demonstrates a clear directory and naming convention for test modules that improves maintainability.

Quick Start

Ask the skill to generate a complete ExUnit test suite for a given feature and begin the Red-Green-Refactor cycle.

Frequently Asked Questions about test-generation

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

FAQPage Schema
How do I generate ExUnit tests using a TDD workflow in Elixir?

Generate ExUnit tests using a TDD workflow by requesting a complete test suite for your feature to initiate the Red-Green-Refactor cycle. This provides unit, property-based, and GenServer test patterns with clear naming and organization.

What is the best way to structure GenServer tests and property-based tests in Elixir?

The best way to structure GenServer tests and property-based tests in Elixir is using consistent directory and naming conventions for test modules. This approach improves maintainability and generates comprehensive test scaffolding for common feature patterns.

How does test-driven development apply to refactoring Elixir features?

Test-driven development applies to refactoring Elixir features by following the Red-Green-Refactor cycle to ensure test-driven progress. This workflow generates comprehensive ExUnit tests that validate edge-case logic before and after refactoring.

Can I use this test generation approach for new Elixir features and edge cases?

Yes, you can use this test generation approach for new Elixir features and edge-case logic across projects. It generates a complete ExUnit test suite tailored to your specific feature using a strict TDD approach.

What are the limitations of automated test scaffolding for Elixir?

Automated test scaffolding for Elixir accelerates test creation but relies on a strict TDD approach to be effective. It focuses on generating unit, property-based, and GenServer tests, requiring clear feature definitions to produce accurate and comprehensive test suites.