CtrlK
BlogDocsLog inGet started
Tessl Logo

fix-tests

Fix failing or broken tests by finding the root cause and correcting the source code (not the test). Use when tests fail, a suite is red, or the user asks to fix or repair tests or a CI test failure.

71

Quality

87%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

HOW TO FIX TESTS

Phase 1: Understand & Reproduce (before any code changes)

  1. Analyze errors: Review logs, error messages, and stack traces to identify the module or method where the failure occurs.
  2. [CRITICAL] Run failing test first: Execute ONLY the failing test to confirm the failure and capture the exact error output. This baseline MUST be established before any code changes.
  3. Study tests: Examine the test code, comments, and descriptions to understand the expected behavior.
  4. Review codebase: Locate the relevant sections of the code being tested and consult documentation, READMEs, or comments to grasp the overall architecture.
  5. Reproduce issue: Create a minimal example that replicates the error to determine if it depends on specific data or configuration.

Phase 2: Hypothesize & Fix

  1. Create hypothesis: Identify the most likely root cause of the error.
  2. Test hypothesis: Methodically test the hypothesis, making small, incremental changes and documenting each step. Run the failing test after each change.
  3. If the hypothesis is incorrect, create a new one and test it again.
  4. If the hypothesis is correct, make the minimal changes to the code to fix the error.

Phase 3: Validate

  1. [CRITICAL] Verify: Run the full test suite to confirm the fix and ensure no regressions.

Verification

  • Failing tests identified and isolated.
  • Root cause determined via hypothesis testing.
  • Minimal fix applied (no production code changed beyond what's needed).
  • Full test suite passes after the fix.
Repository
korchasa/flowai-plugins
Last updated
First committed

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.