tune-ai-powered-testing
/tune-ai-powered-testing
Dostraja generowanie testów przez AI: prompty, priorytety testów, konfigurację testów mutacyjnych i obsługę testów niestabilnych.
Ocena i bezpieczeństwo
- Pliki w paczce
- 3
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 26.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Dostraja generowanie testów przez AI: prompty, priorytety testów, konfigurację testów mutacyjnych i obsługę testów niestabilnych.
Oryginalny opis (EN)
Tune AI-Powered Testing — optimize generation prompts, test prioritization, mutation testing config, flaky test handling, model routing per language. Use when: tune, optimize test generation.
Jak działa
- When to Use
- Tuning Dimensions
- Production Readiness Checklist
- Output: Tuning Report
- Tuning Playbook
Podgląd SKILL.md
--- name: tune-ai-powered-testing description: "Tune AI-Powered Testing — optimize generation prompts, test prioritization, mutation testing config, flaky test handling, model routing per language. Use when: tune, optimize test generation." --- # Tune AI-Powered Testing ## When to Use - Optimize LLM prompts for higher-quality test generation - Configure test prioritization (critical paths first) - Tune mutation testing scope and thresholds - Reduce flaky test rate - Route generation to optimal model per language/complexity ## Tuning Dimensions ### Dimension 1: Generation Prompt Optimization | Technique | Before | After | Impact | |-----------|--------|-------|--------| | Add framework hint | Generic tests | Framework-specific (pytest/Jest) | +30% compile rate | | Include function docstring | Guess behavior | Test documented behavior | +25% relevance | | Specify edge cases | Random tests | Null, empty, boundary, large | +40% edge coverage | | Add assertion guidance | assert True | assert result == expected | +50% mutation score | | Include dependencies | Import errors | Correct imports and mocks | +35% pass rate | ### Dimension 2: Test Prioritization | Strategy | Method | Best For | |----------|--------|---------| | Risk-based | Prioritize recently changed code | Regression prevention | | Coverage-gap | Prioritize uncovered functions | Coverage improvement | | Complexity-based | Prioritize high-cyclomatic-complexity | Bug-likely code | | History-based | Prioritize files with past bugs | Known hotspots | | Time-based | Fastest tests first, slow last | CI speed optimization | ### Dimension 3: Model Routing | Language/Complexity | Model | Why | Cost | |--------------------|-------|-----|------| | Simple functions (< 20 LOC) | gpt-4o-mini | Sufficient for simple cases | $0.01/file | | Complex logic (> 50 LOC) | gpt-4o | Better reasoning for edge cases | $0.05/file | | Multi-file interactions | gpt-4o | Needs cross-file understanding | $0.08/file | | Security-sensitive | gpt-4o | Must catch security edge cases | $0.05/file | | Config/boilerplate | Skip | Not worth testing | $0 | ### Dimension 4: Flaky Test Reduction | Strategy | Implementation | Effectiveness | |----------|---------------|---------------| | Remove time dependencies | Mock time.now() | Eliminates clock flakes | | Add test isolation | Each test resets state | Eliminates order deps | | Add explicit waits | Replace sleep() with conditions | Eliminates timing flakes | | Retry decorator | Retry 3x before failing | Masks (not fixes) root cause | | Quarantine | Move flaky tests to separate suite | Prevents pipeline blocks | ### Dimension 5: Cost Per Test Suite | Component | Cost | Optimization | |-----------|------|-------------| | Test generation (LLM) | $0.01-0.08/file | Route simple→mini, complex→full | | Mutation testing | $0.05/file (extra LLM calls) | Only on changed files | | CI execution | $0.01/run | Test prioritization (fast tests first) | | Flaky retry | $0.005/flaky test | Fix root cause instead of retrying | **Monthly estimate** (100 files, daily CI): - Generation (first time): ~$5 (one-time) - Incremental (changed files): ~$30/mo - Mutation testing (weekly): ~$20/mo - CI execution: ~$30/mo - **Total: ~$80/mo** for complete AI test automation ## Production Readiness Checklist - [ ] Generated test pass rate ≥ 95% - [ ] Coverage improvement ≥ 15% - [ ] Mutation score ≥ 70% - [ ] Flaky rate < 3% - [ ] CI integration running on every PR - [ ] Model routing configured per language - [ ] Test prioritization active - [ ] Assertion density ≥ 2 per test - [ ] Cost per month within budget ## Output: Tuning Report After tuning, compare: - Test quality improvement (pass rate, mutation score) - Coverage delta - Flaky test rate reduction - Cost per test suite - Generation speed improvement ## Tuning Playbook 1. **Baseline**: Generate tests for 10 source files, record all metrics 2. **Prompt**: Add framework hint + edge case directive + assertion guidance 3. **Model**: Route simple functions to gpt-4o-mini, complex to gpt-4o 4. **Mutation**: Run mutation testing, identify surviving mutations 5. **Fix**: Regenerate tests targeting surviving mutations specifically 6. **Flaky**: Run 5x, quarantine any non-deterministic tests 7. **Priority**: Configure risk-based test ordering in CI 8. **Coverage**: Compare coverage before/after, target \u226515% lift 9. **Cost**: Calculate monthly budget at target repo size 10. **Re-test**: Same 10 files, compare before/after
Pliki w paczce (3)
- SKILL.lean.md 4 KB
- SKILL.md 4 KB
- agents/openai.yaml 1 KB
Wersje
W bazie nie ma innych skilli o nazwie tune-ai-powered-testing.
Migawka bazy z 13.11.2026 · wersja paczki f93c53f850c2 (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
- 100deploy-ai-powered-testing
Wdraża testowanie wspierane przez AI: generowanie testów przez LLM z AST kodu, framework testów mutacyjnych, priorytetyzację testów i integrację z CI/CD. - 100evaluate-ai-powered-testing
Ocenia testowanie wspierane przez AI: jakość wygenerowanych testów, wzrost pokrycia, wynik mutacyjny, odsetek fałszywych alarmów i niestabilnych testów. - 100e2e-testing
Opisuje wzorce testów E2E w Playwright: Page Object Model, konfigurację, integrację z CI/CD, zarządzanie artefaktami i strategie wobec niestabilnych testów. - 100axiom-audit-testing
Audytuje jakość testów, wyszukuje wzorce niestabilnych testów, przyspiesza wykonywanie testów i przygotowuje migrację do Swift Testing. - 100testing-strategy
Opisuje metodykę testów: piramidę, deterministyczne testy jednostkowe i integracyjne oraz diagnozę niestabilnych testów. - 100eng-testing
Prowadzi przy pisaniu testów, projektowaniu strategii testów i przeglądzie pokrycia: piramidę testów, nazewnictwo, mockowanie i politykę testów niestabilnych.