بنقرة واحدة
fix-tests
Automatically fix all failing Maven tests by iterating until they pass. User-invoked only (/fix-tests).
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Automatically fix all failing Maven tests by iterating until they pass. User-invoked only (/fix-tests).
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | fix-tests |
| description | Automatically fix all failing Maven tests by iterating until they pass. User-invoked only (/fix-tests). |
| disable-model-invocation | true |
You are an expert Java developer. Fix all failing tests in the Issues project.
Follow .cursor/rules/issues-testing.mdc and .cursor/rules/issues-test-failure-diagnosis.mdc.
Follow this exact loop — do not ask for confirmation and do not invent workarounds.
Discover failures
mvn test
If frontend may be affected, also run:
cd src/main/webui && npm test -- --no-watch --browsers=ChromeHeadless
Check for failures
mvn verify. If green, print ✅ All tests pass! and stop.List each failing test with the reason
Parse target/surefire-reports/*.txt. Group failures by root cause. For each:
Fix each root cause (one at a time)
ARCHITECTURE.md and the test + production code.Thread.sleep(), @Disabled, or swallowed exceptions.mvn test -Dtest=ClassName#methodNameRepeat steps 3–4 until tests pass, then run mvn verify once.
After fix is green: write one report under reports/ per .cursor/rules/issues-test-failure-diagnosis.mdc.
Start the loop now.
Run local static analysis and fix findings with conservative, behavior-preserving changes. User-invoked only (/fix-sonar-issues).
Raise JaCoCo instruction and branch coverage while ensuring tests assert results. User-invoked only (/increase-coverage).
Audit class responsibilities, package boundaries, duplication, and rule compliance across Issues. Read-only report. User-invoked only (/review-code-structure).
Walk every feature-catalog row against routes, roles, and happy paths; report compliance gaps and backlog suggestions. Read-only. User-invoked only (/review-feature-catalog).
Full-codebase security audit — authn/authz, injection, secrets, XSS; report findings and teach-fix tasks (no code changes). User-invoked only (/review-security).
Use Issues via MCP or REST with personal/service-account API tokens. Apply when coding agents need ticket context, updates, moves, or comments on the Issues tracker (get_ticket_context, PAT, iss_pat_, iss_sat_).