test-flakiness

Featured

Detect non-deterministic (flaky) tests by reading CI run logs or test result history. Aggregates pass rates per test, identifies intermittent failures, recommends quarantine or fix, and maintains a flaky test registry. Best run during Polish phase or after multiple CI runs.

AI & Automation 21,463 stars 3118 forks Updated 3 weeks ago MIT

Install

View on GitHub

Quality Score: 97/100

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

Skill Content

# Test Flakiness Detection A flaky test is one that sometimes passes and sometimes fails without any code change. Flaky tests are worse than no tests in some ways — they train the team to ignore red CI runs, masking genuine failures. This skill identifies them, explains likely causes, and recommends whether to quarantine or fix each one. **Output:** Updated `tests/regression-suite.md` quarantine section + optional `production/qa/flakiness-report-[date].md` **When to run:** - Polish phase (tests have had many runs; statistical signal is reliable) - When developers start dismissing CI failures as "probably flaky" - After `/regression-suite` identifies quarantined tests that need diagnosis --- ## 1. Parse Arguments **Modes:** - `/test-flakiness [ci-log-path]` — analyse a specific CI run log file - `/test-flakiness scan` — scan all available CI logs in `.github/` or standard log output directories - `/test-flakiness registry` — read existing regression-suite.md quarantine section and provide remediation guidance for already-known flaky tests - No argument — auto-detect: run `scan` if CI logs are accessible, else `registry` --- ## 2. Locate CI Log Data ### Option A — GitHub Actions (preferred) Check for test result artifacts: ```bash ls -t .github/ 2>/dev/null ls -t test-results/ 2>/dev/null ``` For Godot projects: GdUnit4 outputs XML results compatible with JUnit format. Check `test-results/` for `.xml` files. For Unity projects: game-ci test runner outputs NUni...

Details

Author
Donchitos
Repository
Donchitos/Claude-Code-Game-Studios
Created
4 months ago
Last Updated
3 weeks ago
Language
Shell
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category