Fix Test
SkillDev toolsDebug and fix failing tests systematically
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Fix Test skill
What this skill tells your AI
The instructions your AI receives, as published by typeddevs/bashunit in .claude/skills/fix-test/SKILL.md and read by ahel’s review.
Systematically debug and fix failing test(s).
Workflow
1. Identify Failures
./bashunit tests/ 2>&1
Parse: which files, which functions, error messages.
2. Categorize Each Failure
- Test bug — test itself is wrong (wrong expected value, bad setup)
- Implementation bug — code doesn't match expected behavior
- Environment issue — missing dependency, wrong fixture path
- Race condition — passes sequential, fails parallel
- Flaky test — network/time/random dependency
3. Fix
- Test bug: correct assertion or setup
- Implementation bug: minimal fix in
src/, follow TDD - Environment: fix
set_up/ fixtures - Race condition: use
$temp_dirfor isolation,waitfor async - Flaky: mock external dependencies
4. Verify
./bashunit path/to/fixed_test.sh # Specific test
./bashunit tests/ # Full suite
./bashunit --parallel tests/ # Isolation check
5. Prevent Regression
Document root cause. Consider adding edge case tests to prevent recurrence.
Debugging Tips
- Use
--filter "test_name"to run single test - Add
echo "DEBUG: $var" >&2temporarily - Check fixtures exist:
ls tests/fixtures/ - Verify mocks:
assert_have_been_called mock_name
Signals
- GitHub stars
- 425
- Forks
- 57
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
fix-test- Source
- github.com/typeddevs/bashunit