test-generator

Generate compilable test projects that trigger Konveyor analyzer rules.

1|2|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/konveyor/ai-rule-gen --skill test-generator-konveyor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-generator
Source: https://github.com/konveyor/ai-rule-gen/tree/main/agents/test-generator
Command: npx skills add https://github.com/konveyor/ai-rule-gen --skill test-generator-konveyor

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill creates minimal, compilable test applications that trigger Konveyor analyzer rules, removing the manual work of hand-crafting rule-validation fixtures.

Core Features & Use Cases

  • Rule-driven test generation: Reads assigned rule IDs and produces source code that exactly matches each rule pattern.
  • Compilable project scaffolding: Builds complete language-specific test projects with the correct build files and source layout.
  • Validation-ready output: Handles dependency version selection, manifest-driven file placement, and test data that is suitable for kantra analysis.

Quick Start

Ask the test-generator skill to generate compilable test files for the supplied rules directory and tests directory.

Frequently Asked Questions about test-generator

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

FAQPage Schema
How do I generate compilable test fixtures for Konveyor analyzer rules?

To generate compilable test fixtures for Konveyor analyzer rules, use a rule-validation workflow that scaffolds test groups, maps rule IDs to source patterns, and outputs complete language-specific projects with correct build files and source layout for Java, Go, Node.js, or C#.

What are migration-rule fixtures and when do I need them for kantra analysis?

Migration-rule fixtures are minimal, compilable test applications that trigger specific analyzer rules. You need them for kantra analysis to validate rule behavior without hand-crafting test data, ensuring exact source-API matching and manifest-driven file placement.

Can I generate test projects for multiple programming languages like Java, Go, Node.js, and C#?

Yes, you can generate test projects for Java, Go, Node.js, and C#. The generation process builds complete language-specific projects by selecting correct dependency versions, applying manifest-driven file placement, and producing kantra-compatible build and source output.

How do I scaffold test groups that exactly match Konveyor rule patterns?

You scaffold test groups by reading assigned Konveyor rule IDs and producing source code that exactly matches each rule pattern. This involves exact source-API matching, dependency and version selection, and manifest-driven file placement to ensure validation-ready output.

What's the best way to automate migration-rule test generation instead of hand-crafting fixtures?

Automating migration-rule test generation involves supplying a rules directory and tests directory to a rule-driven generation process. This removes manual work by automatically producing compilable projects with correct build files, dependency versions, and source layout suitable for kantra analysis.

Why do my hand-crafted Konveyor test projects fail to trigger analyzer rules correctly?

Hand-crafted test projects often fail due to incorrect dependency versions, improper source layout, or missing exact source-API matching. Automated generation ensures validation-ready output by handling manifest-driven file placement and producing kantra-compatible build and source files.