What problem does it solve? Running Apex tests, interpreting failures, and maintaining code coverage in Salesforce orgs is repetitive and error-prone. This Skill automates test execution via the sf CLI, parses results into structured failure analysis, and drives an agentic test-fix loop until tests pass. ## Core Features & Use Cases - Test Execution & Coverage Analysis: Run single classes, specific methods, suites, or all local tests with sf apex run test, including JSON, JUnit, and detailed line-by-line coverage output. - Failure Analysis & Auto-Fix Loop: Parse failures into root causes (NullPointerException, DmlException, governor limits) with suggested fixes, then re-run focused tests until passing. - Testing Patterns & Templates: Apply test data factories, HttpCalloutMock, DML mocking, StubProvider stubs, and 251-record bulk tests, scored against a 120-point quality rubric. - Use Case: Ask to run all local tests with coverage on a sandbox; the Skill reports pass/fail, identifies a NullPointerException in AccountServiceTest, suggests the missing null check, and re-runs the fixed test. ## Quick Start Ask the assistant to run all local Apex tests with code coverage against your target org and automatically fix any failures it finds.