Generate test cases using metamorphic testing by applying transformations based on metamorphic properties. Use when you need to expand test suites, test programs without oracles, validate mathematical or algorithmic properties, or detect subtle bugs through input-output relationships. The skill takes a program, original test cases, and metamorphic properties as input, generates new test cases by applying transformations, executes tests, verifies outputs satisfy properties, reports violations and anomalies, and outputs an expanded test suite with property coverage summary. Supports multiple programming languages and property types.
Install with Tessl CLI
npx tessl i github:ArabelaTso/Skills-4-SE --skill metamorphic-test-generator80
Does it follow best practices?
If you maintain this skill, you can automatically optimize it using the tessl CLI to improve its score:
npx tessl skill review --optimize ./path/to/skillValidation for skill structure
This skill generates test cases using metamorphic testing, applying transformations based on metamorphic properties to expand test suites and detect bugs through input-output relationships.
# Generate metamorphic tests
python scripts/generate.py program.py --tests tests/ --properties properties.json
# Use specific metamorphic properties
python scripts/generate.py program.py --tests tests/ --properties "permutation,addition"
# Generate report
python scripts/generate.py program.py --tests tests/ --properties props.json --output report.jsonGenerates detailed report with:
Example report:
{
"original_tests": 20,
"generated_tests": 60,
"properties_applied": ["permutation", "addition", "inverse"],
"violations": 3,
"property_coverage": 95.0,
"anomalies": ["inverse property failed for negative inputs"]
}python scripts/generate.py <program> --tests <test_dir> --properties <properties> [--output <report.json>]0f00a4f
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.