test-flakiness

Detect flaky tests by analyzing CI logs and test-result history.

1|Updated May 3, 2026
One-click install
npx skills add https://github.com/imclab/xrA1-swarm --skill test-flakiness-imclab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-flakiness
Source: https://github.com/imclab/xrA1-swarm/tree/main/.claude/skills/test-flakiness
Command: npx skills add https://github.com/imclab/xrA1-swarm --skill test-flakiness-imclab

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Detects flaky tests that intermittently fail or pass, preventing CI noise from masking real regressions and wasting developer time.

Core Features & Use Cases

  • CI/Test Result Log Analysis: Reads CI run logs or test result files to reconstruct pass/fail history per test.
  • Flakiness Classification & Root-Cause Hints: Identifies likely causes such as timing issues, order dependency, randomness, resource leaks, external state, floating-point comparisons, and scene/prefab load races.
  • Actionable Remediation Outputs: Updates the quarantine section in tests/regression-suite.md and can produce a dated flakiness report for deeper review.

Use Case: After multiple CI runs, you suspect a subset of tests is unreliable and are getting frequent red builds; use this Skill to pinpoint which tests are flaky, estimate fail rates, recommend quarantine vs. fix, and document the rationale.

Quick Start

Run /test-flakiness scan to scan available CI logs and update tests/regression-suite.md with any detected flaky tests.

Frequently Asked Questions about test-flakiness

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

FAQPage Schema
How do I detect flaky tests from JUnit XML logs in CI?

Detect flaky tests by aggregating per-test pass and fail outcomes across multiple CI runs from JUnit-like XML files, applying flakiness thresholds to identify tests that alternate results without code changes.

What causes test flakiness in regression suites?

Test flakiness in regression suites is caused by timing issues, order dependency, randomness, resource leaks, external state, floating-point comparisons, and scene or prefab load races, which are classified by analyzing test result history.

How do I quarantine flaky tests automatically?

Quarantine flaky tests by scanning CI logs to detect unreliable tests, then updating the quarantine section in tests/regression-suite.md and generating a dated flakiness report after explicit approval.

Can I analyze plain-text engine logs for test flakiness?

Yes, you can analyze plain-text engine logs from Godot, Unity, and Unreal to reconstruct per-test pass and fail history and detect flakiness across multiple regression suite runs.

Does test flakiness detection work with GdUnit4 and Unity NUnit?

Yes, test flakiness detection works with GdUnit4 and Unity NUnit by parsing JUnit-like XML test results to aggregate outcomes and apply flakiness thresholds across multiple CI runs.

When should I quarantine a flaky test instead of fixing it?

You should quarantine a flaky test instead of fixing it when frequent red builds mask real regressions; the scan estimates fail rates and recommends quarantine versus fix actions to reduce CI noise.