skills/smithery.ai/test-fixer

test-fixer

Installation
SKILL.md

Test Fixer Skill

This skill provides guidelines for AI agents to diagnose and fix flaky tests in the Hex1b TUI library test suite. These tests use Hex1bTerminalInputSequenceBuilder to simulate user interactions with terminal applications.

Quick Reference: Common Flaky Test Patterns

Pattern Symptom Fix
Snapshot After Exit Test passes locally, fails on Linux CI Move WaitUntil before Capture, ensure Capture is before exit
Missing WaitUntil Intermittent assertion failures Add WaitUntil for expected state before Capture
Race with Ctrl+C Snapshot missing expected content Add WaitUntil between last action and Capture
Task.WhenAny Race Test sometimes times out Replace with proper WaitUntil or increase timeout
Test Interference Pass isolated, fail in suite Check for shared state, file locks, or parallel execution issues
Platform-Specific Fails consistently on Windows/Linux Add platform skip trait or fix platform-specific code
Task.Delay for Async Events Flaky on slower CI runners Replace Task.Delay with TaskCompletionSource signal
Helper Partial Wait Tests using multi-line helpers fail intermittently Wait for all/last content, not just first line

Installs
1
First Seen
Mar 23, 2026
test-fixer from smithery.ai