fixing-flaky-tests
CommunityStabilize unreliable tests.
Software Engineering#testing#ci/cd#test automation#debugging#race conditions#flaky tests#state isolation
Authorkirvin
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses the frustrating issue of tests that pass when run individually but fail intermittently when run as part of a larger suite, often due to race conditions or shared state.
Core Features & Use Cases
- Diagnose Test Failures: Differentiate between shared state issues and race conditions.
- Implement Isolation Strategies: Provides patterns for database, global variable, and resource isolation.
- Address Race Conditions: Guides users on using explicit waiting mechanisms instead of arbitrary sleeps.
- Use Case: Your CI pipeline is failing sporadically on a specific test. Use this Skill to identify whether the test is corrupting shared data or not properly waiting for asynchronous operations, and apply the correct fix.
Quick Start
Use the fixing-flaky-tests skill to diagnose and fix tests that pass in isolation but fail concurrently.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: fixing-flaky-tests Download link: https://github.com/kirvin/copilot-cli-essentials/archive/main.zip#fixing-flaky-tests Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.