What problem does it solve? Apex deployments fail when tests are missing, coverage falls below the 75% platform minimum, or tests are flaky and org-data dependent. This Skill provides the patterns and rules needed to write deterministic, bulk-safe Apex tests that pass coverage gates and survive deployment to production. ## Core Features & Use Cases - Test authoring patterns: @IsTest classes, @TestSetup, Test.startTest/Test.stopTest limit contexts, the modern Assert class, test data factories, builders, and Test.loadData with static resources. - Mocking and async testing: HttpCalloutMock, StaticResourceCalloutMock, WebServiceMock, the Stub API, plus deterministic recipes for Queueable, Batch, future, Schedulable, and platform events. - Coverage and gate enforcement: Explains the 75% platform rule, per-class coverage under RunSpecifiedTests, sf apex run test flag selection, and how vf-check apex enforces apexOrgCoverageMin and apexClassCoverageMin. - Use Case: A deployment fails its test level because a new trigger has no coverage. Use this Skill to write a 200-record bulk trigger test with a TestDataFactory, assert governor-limit bounds, and rerun sf apex run test until the gate passes. ## Quick Start Ask the assistant to write a unit test with full coverage for a specific Apex class such as CaseEscalationService.cls.