running-mutation-tests

Featured

This skill enables Claude to validate test suite quality by performing mutation testing. It is triggered when the user asks to run mutation tests, analyze test effectiveness, or improve test coverage. The skill introduces code mutations, runs tests against the mutated code, and reports on the "survival rate" of the mutations, indicating the effectiveness of the test suite. Use this skill when the user requests to assess the quality of their tests using mutation testing techniques. Specific trigger terms include "mutation testing", "test effectiveness", "mutation score", and "surviving mutants".

AI & Automation 2,944 stars 440 forks Updated today MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

## Overview This skill empowers Claude to execute mutation testing, providing insights into the effectiveness of a test suite. By introducing small changes (mutations) into the code and running the tests, it determines if the tests are capable of detecting these changes. This helps identify weaknesses in the test suite and improve overall code quality. ## How It Works 1. **Mutation Generation**: The plugin automatically introduces mutations (e.g., changing `+` to `-`) into the code. 2. **Test Execution**: The test suite is run against the mutated code. 3. **Result Analysis**: The plugin analyzes which mutations were "killed" (detected by tests) and which "survived" (were not detected). 4. **Reporting**: A mutation score is calculated, and surviving mutants are identified for further investigation. ## When to Use This Skill This skill activates when you need to: - Validate the effectiveness of a test suite. - Identify gaps in test coverage. - Improve the mutation score of a project. - Analyze surviving mutants to strengthen tests. ## Examples ### Example 1: Improving Test Coverage User request: "Run mutation testing on the validator module and suggest improvements to the tests." The skill will: 1. Execute mutation tests on the validator module. 2. Analyze the results and identify surviving mutants, indicating areas where tests are weak. 3. Suggest specific improvements to the tests based on the surviving mutants, such as adding new test cases or modifying existing on...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

mutation-test-runner

Run mutation test runner operations. Auto-activating skill for Test Automation. Triggers on: mutation test runner, mutation test runner Part of the Test Automation skill category. Use when writing or running tests. Trigger with phrases like "mutation test runner", "mutation runner", "mutation".

2,944 Updated today
jeremylongshore
Testing & QA Listed

mutants

This skill should be used when the question is whether a test suite is actually any good — when the user says "are these tests any good", "what am I not testing", "coverage is 100% but I still shipped a bug", "improve the tests for this", "is this well tested", "find gaps in my tests", "mutation testing", or asks for tests to be written for existing code and the useful ones need identifying. Measures which bugs the suite would actually catch by mutating the source, then triages the survivors into real gaps and equivalent mutants.

1 Updated 3 months ago
lkc-studio
Testing & QA Listed

mutants

This skill should be used when the question is whether a test suite is actually any good — when the user says "are these tests any good", "what am I not testing", "coverage is 100% but I still shipped a bug", "improve the tests for this", "is this well tested", "find gaps in my tests", "mutation testing", or asks for tests to be written for existing code and the useful ones need identifying. Measures which bugs the suite would actually catch by mutating the source, then triages the survivors into real gaps and equivalent mutants.

1 Updated 3 months ago
lkc-studio