mutation-test-suite-optimizer
/mutation-test-suite-optimizer
Optymalizuje zestawy testów testami mutacyjnymi, aby uzyskać najwyższy wskaźnik zabitych mutantów przy minimalnej liczbie testów, wskazując testy zbędne i generując zoptymalizowany podzbiór.
- Autor
- ArabelaTso ↗
- Repozytorium
- Skills-4-SE ↗
- Licencja
- Apache-2.0
- Ostatnia zmiana repozytorium
- 21.08.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 21.08.2026, bez odwołań do wycofanych modeli i API.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
Co robi i kiedy
Optymalizuje zestawy testów testami mutacyjnymi, aby uzyskać najwyższy wskaźnik zabitych mutantów przy minimalnej liczbie testów, wskazując testy zbędne i generując zoptymalizowany podzbiór.
Oryginalny opis (EN)
Optimize test suites using mutation testing to maximize mutation kill rate with minimal tests. Use when you need to reduce test suite size while maintaining quality, identify redundant tests, improve mutation coverage, or validate test effectiveness. The skill analyzes test coverage, execution intervals, and redundancy using mutation operators, selects or generates a minimal subset of tests that maximizes mutation kill rate, and outputs an optimized test suite with detailed reports showing killed and surviving mutants. Supports multiple programming languages and mutation testing frameworks.
Jak działa
- Overview
- Quick Start
- What Gets Optimized
- Mutation Operators
- Optimization Report
- Usage
- Tips
Podgląd SKILL.md
---
name: mutation-test-suite-optimizer
description: Optimize test suites using mutation testing to maximize mutation kill rate with minimal tests. Use when you need to reduce test suite size while maintaining quality, identify redundant tests, improve mutation coverage, or validate test effectiveness. The skill analyzes test coverage, execution intervals, and redundancy using mutation operators, selects or generates a minimal subset of tests that maximizes mutation kill rate, and outputs an optimized test suite with detailed reports showing killed and surviving mutants. Supports multiple programming languages and mutation testing frameworks.
---
# Mutation Test Suite Optimizer
## Overview
This skill optimizes test suites using mutation testing, selecting a minimal subset of tests that maximizes mutation kill rate while reducing execution time and redundancy.
## Quick Start
```bash
# Optimize test suite with mutation testing
python scripts/optimize.py /path/to/repo --tests tests/
# Use specific mutation operators
python scripts/optimize.py repo/ --tests tests/ --operators AOR,ROR,COR
# Generate optimization report
python scripts/optimize.py repo/ --tests tests/ --output report.json
```
## What Gets Optimized
1. **Test Selection** - Identify minimal test subset for maximum coverage
2. **Redundancy Removal** - Eliminate tests that kill same mutants
3. **Mutation Coverage** - Maximize mutants killed
4. **Execution Time** - Reduce overall test execution time
5. **Test Quality** - Identify weak or ineffective tests
## Mutation Operators
Supports common mutation operators:
- **AOR** - Arithmetic Operator Replacement
- **ROR** - Relational Operator Replacement
- **COR** - Conditional Operator Replacement
- **SOR** - Shift Operator Replacement
- **LOR** - Logical Operator Replacement
- **ASR** - Assignment Operator Replacement
## Optimization Report
Generates detailed report with:
- **Optimized Test Suite** - Minimal test subset
- **Mutation Kill Rate** - Percentage of mutants killed
- **Killed Mutants** - List of detected mutants
- **Surviving Mutants** - Mutants that escaped detection
- **Redundant Tests** - Tests that can be removed
- **Execution Time Savings** - Time reduction achieved
Example report:
```json
{
"original_tests": 150,
"optimized_tests": 45,
"mutation_kill_rate": 92.5,
"killed_mutants": 185,
"surviving_mutants": 15,
"time_savings": "67%"
}
```
## Usage
```bash
python scripts/optimize.py <repo_path> --tests <test_dir> [--operators <ops>] [--output <report.json>]
```
## Tips
- Run regularly to maintain test suite quality
- Focus on high-value tests that kill unique mutants
- Remove redundant tests to speed up CI/CD
- Use surviving mutants to guide new test creation
- Balance mutation score with execution time
- Integrate into continuous testing pipeline
Wersje
W bazie nie ma innych skilli o nazwie mutation-test-suite-optimizer.
Migawka bazy z 13.11.2026 · wersja paczki 0ca95a64b040 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100mutation-testing
Ocenia jakość testów przez testy mutacyjne: wprowadza zmiany w kodzie i mierzy wskaźnik zabitych mutantów, aby wskazać słabe testy i potwierdzić, że wykrywają błędy. - 100running-mutation-tests
Wykonuje testy mutacyjne, aby ocenić skuteczność zestawu testów. - 100test-deduplicator
Analizuje zestawy testów, by znaleźć zbędne i zduplikowane przypadki na podstawie pokrycia, podobieństwa semantycznego i wyników wykonania, co skraca czas testów. - 100behavioral-mutation-analyzer
Analizuje mutanty, które przetrwały testy mutacyjne, wskazuje przyczyny, takie jak słabe asercje czy brakujące przypadki brzegowe, i generuje propozycje ulepszeń oraz nowe testy. - 100mutation-test
Uruchamia testy mutacyjne, aby ocenić jakość testów ponad samo pokrycie kodu, znaleźć słabe testy i sprawdzić skuteczność zestawu testów. - 100mutation-test
Uruchamia testy mutacyjne, aby ocenić jakość testów ponad samo pokrycie kodu, znaleźć słabe testy i sprawdzić skuteczność zestawu testów.