Engineering
test-generation avatar

test-generation

Intelligent unit and integration test generation powered by Minion framework, featuring business logic validation, boundary testing, and Vitest integration.

Introduction

The Test Generation skill leverages the Minion AI framework to automate the creation of high-quality test suites for TypeScript projects. Designed for developers working with Vitest, this skill focuses on bridging the gap between business documentation and implementation. It extracts business rules from technical specifications and JSDoc tags to ensure that generated tests are not only covering lines of code but also verifying critical business scenarios and edge cases. By analyzing function signatures and utilizing context-aware prompt engineering, it significantly reduces the manual overhead of writing boilerplate tests for domain logic.

  • Automatically extracts test scenarios from business requirement documents and code documentation.

  • Performs deep analysis of function signatures to generate comprehensive unit tests, including null-safety checks and boundary conditions.

  • Provides seamless integration with Vitest, including configuration assistance and coverage analysis.

  • Supports multi-function integration testing, allowing agents to test complex workflows involving multiple domain modules.

  • Facilitates error case testing by identifying potential input anomalies and exception scenarios based on function logic.

  • Generates structured, readable test files using descriptive describe/it blocks for maintainable test suites.

  • Ensure the target codebase uses TypeScript and Vitest for optimal performance.

  • Requires readFunctionCode and extractBusinessDoc utilities to provide context for the Minion API.

  • Expects inputs including the function name, source code, and associated documentation links.

  • Outputs standard Vitest test files with clear coverage estimates and improvement recommendations.

  • Best suited for domain-driven design architectures where business rules are explicitly documented in markdown or source code comments.

Repository Stats

Stars
0
Forks
0
Open Issues
0
Language
TypeScript
Default Branch
main
Sync Status
Idle
Last Synced
May 3, 2026, 09:51 PM
View on GitHub