metamorphic-test-generator

Generate test cases by applying metamorphic properties and verifying output relationships.

142|14|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/ArabelaTso/Skills-4-SE --skill metamorphic-test-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: metamorphic-test-generator
Source: https://github.com/ArabelaTso/Skills-4-SE/tree/main/skills/metamorphic-test-generator
Command: npx skills add https://github.com/ArabelaTso/Skills-4-SE --skill metamorphic-test-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill automates the generation of test cases for software programs, particularly useful when traditional test oracles are unavailable or difficult to define. It helps expand test suites and uncover subtle bugs by leveraging metamorphic testing principles.

Core Features & Use Cases

  • Automated Test Case Generation: Creates new test inputs based on predefined metamorphic properties.
  • Property Verification: Checks if the program's output adheres to the expected metamorphic relationships.
  • Use Case: You have a complex mathematical function and want to ensure its behavior is consistent across different input scales and transformations. This Skill can generate tests to verify properties like monotonicity and multiplication scaling.

Quick Start

Use the metamorphic-test-generator skill to generate tests for 'program.py' using the 'permutation' and 'addition' properties.

Frequently Asked Questions about metamorphic-test-generator

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

FAQPage Schema
What is metamorphic testing and when do I need it for test generation?

Metamorphic testing validates programs by checking if outputs satisfy expected relationships after input transformations. You need it to test programs without test oracles, verify mathematical properties, or detect subtle bugs through input-output relationships.

How do I generate test cases for a program without a test oracle?

You generate test cases by providing your program, original test cases, and metamorphic properties as input. The generator applies transformations to create new inputs, executes them, verifies outputs satisfy the properties, and reports violations or anomalies.

Can I use metamorphic testing to validate mathematical properties in my code?

Yes, you can validate mathematical or algorithmic properties by using metamorphic testing. It checks if your program's outputs adhere to expected metamorphic relationships across different input scales and transformations, reporting any violations found.

Does the metamorphic test generator support multiple programming languages?

Yes, the metamorphic test generator supports multiple programming languages and various property types such as permutation and addition. It executes tests across these languages and outputs an expanded test suite with a property coverage summary.

How does automated test generation detect subtle bugs in complex functions?

Automated test generation detects subtle bugs by applying input transformations and checking if outputs satisfy expected metamorphic relationships. It identifies violations and anomalies, expanding your test suite to uncover issues traditional testing might miss.