test-deduplicator

Identify and remove redundant tests from a test suite.

1|2|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/santosomar/general-secure-coding-agent-skills --skill test-deduplicator-santosomar
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-deduplicator
Source: https://github.com/santosomar/general-secure-coding-agent-skills/tree/main/skills/testing/test-deduplicator
Command: npx skills add https://github.com/santosomar/general-secure-coding-agent-skills --skill test-deduplicator-santosomar

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill tackles the issue of bloated test suites by identifying and removing redundant tests, thereby reducing execution time and associated costs without sacrificing test coverage.

Core Features & Use Cases

  • Redundancy Identification: Detects tests that cover the same code, kill the same mutants, or assert the same behavior.
  • Coverage Analysis: Leverages per-test coverage data to find subsumed tests.
  • Mutation Testing Integration: Uses mutation testing results to verify behavioral equivalence, ensuring that deleting a test doesn't remove critical bug-killing capabilities.
  • Parametrization Suggestions: Identifies opportunities to consolidate similar tests into parameterized ones.
  • Use Case: When a test suite takes too long to run, or CI costs are escalating due to a large number of tests, this Skill can significantly optimize it.

Quick Start

Analyze the current test suite to identify and suggest redundant tests for removal.

Frequently Asked Questions about test-deduplicator

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

FAQPage Schema
How do I remove redundant tests to reduce CI execution time?

You can reduce CI execution time by analyzing test coverage and mutation testing results to identify and remove redundant tests. This deduplication process eliminates tests that cover the same code or assert the same behavior, significantly shrinking the test suite.

What is test suite deduplication and how does it work?

Test suite deduplication is the process of identifying and removing redundant tests by analyzing per-test coverage data and mutation testing results. It detects tests that kill the same mutants or assert identical behavior, ensuring bug-killing capabilities remain intact after deletion.

Can I use mutation testing to verify behavioral equivalence before deleting tests?

Yes, mutation testing integration verifies behavioral equivalence by checking that deleting a specific test does not remove critical bug-killing capabilities. This ensures that removing redundant tests maintains the same defect detection quality across the codebase.

What is the best way to consolidate similar tests into parameterized ones?

The best way to consolidate similar tests is by analyzing code structure and test coverage data to identify opportunities for parametrization. This process detects tests asserting comparable behaviors and provides actionable insights to merge them into a single parameterized test.

Does removing redundant tests sacrifice my overall code coverage?

Removing redundant tests does not sacrifice code coverage when leveraging per-test coverage data to find subsumed tests. By ensuring that remaining tests still provide full coverage and kill the same mutants, the optimization process maintains quality while reducing runtime costs.

When should I optimize my test suite for redundancy?

You should optimize your test suite for redundancy when execution takes too long or CI costs are escalating due to a large number of tests. Analyzing test coverage and code structure at this stage identifies bloated areas suitable for deduplication and parametrization.