Apex Flaky Test Finder
Detects and analyzes non-deterministic Salesforce Apex tests by executing them repeatedly to identify intermittent failures.
Flaky Test Finder is a specialized diagnostic tool for Salesforce developers using Claude Code to troubleshoot 'heisenbugs' that pass locally but fail intermittently in CI/CD pipelines. It automates the process of running Apex test classes multiple times against a target org, aggregating results to highlight methods with inconsistent outcomes. By analyzing failure messages and code patterns, the skill identifies common root causes—such as missing async boundaries, clock drift, and order-dependent SOQL—providing actionable Markdown reports or CI-ready findings to help stabilize your Salesforce test suite.
Key Features
01Heuristic root cause analysis for common Apex flakiness patterns
02Detailed Markdown reporting with pass/fail ratios and failure message comparisons
03Synchronous execution mode to prevent cross-test interference and queue lag
040 GitHub stars
05Automated multi-run execution to prove non-determinism in Apex tests
06CI-compatible output mode for automated detection in deployment pipelines
Use Cases
01Troubleshooting intermittent test failures that only occur in shared CI environments
02Auditing legacy Salesforce test suites to identify and resolve brittle test logic
03Validating the stability of complex integration tests before merging into production branches