testo-mutation-testing

Run mutation testing on Testo projects with Infection to identify escaped mutants.

203|12|Updated Oct 12, 2025
One-click install
npx skills add https://github.com/php-testo/testo --skill testo-mutation-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testo-mutation-testing
Source: https://github.com/php-testo/testo/tree/main/skills/testo-mutation-testing
Command: npx skills add https://github.com/php-testo/testo --skill testo-mutation-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires testo, infection, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of ensuring the robustness of test suites by employing mutation testing, which identifies and strengthens tests by introducing faults and observing the results.

Core Features & Use Cases

  • Mutation Testing: Run mutation testing using Infection to find and strengthen tests for escaped mutants.
  • Scope Definition: Allows users to define the scope of mutation testing (whole project, specific segments, or just generate a report).
  • Segmentation: Breaks down the project into segments for efficient mutation testing.
  • Report Generation: Provides a comprehensive report of mutation results, including killed, escaped, and not-covered mutants.
  • Mutant Killing: Guides users through the process of killing escaped mutants by adding or strengthening tests.

Quick Start

Run mutation testing on your Testo project by using the skill with the command: testo-mutation-testing run

Frequently Asked Questions about testo-mutation-testing

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

FAQPage Schema
How does mutation testing improve test coverage in PHP projects?

Mutation testing improves test coverage by deliberately introducing faults into your code and running your test suite to detect escaped mutants. If tests pass despite the fault, it exposes gaps in your test coverage that need strengthening.

How do I run mutation testing on a Testo project using Infection?

To run mutation testing on your Testo project, execute the `testo-mutation-testing run` command. This initiates Infection to systematically introduce faults, identify escaped mutants, and generate a comprehensive report of killed and not-covered mutants.

Can I define the scope of mutation testing to target specific project segments?

Yes, you can define the scope of mutation testing to run on the whole project or break it down into specific segments. This allows you to efficiently target particular areas of your codebase or simply generate a coverage report.

Do I need both Testo and Infection installed to perform mutation testing?

Yes, you need both Testo and Infection installed, along with a Testo project configured with the appropriate setup. These dependencies are required to execute the mutation testing process and identify escaped mutants effectively.

What is the best way to kill escaped mutants found during mutation testing?

The best way to kill escaped mutants is by adding new tests or strengthening existing ones. This Skill guides you through the process of reviewing the mutation report and writing targeted tests to catch the faults that previously escaped detection.

Why does mutation testing report show not-covered mutants even with high code coverage?

Mutation testing reports show not-covered mutants because traditional code coverage only checks if code is executed. Mutation testing goes deeper by introducing faults, revealing that while code is run, your tests may lack the assertions needed to catch escaped mutants.