SKILL7.1K installs1.1K

Platform Apex Test Generate

Generate and validate Apex test classes with TestDataFactory patterns, bulk testing (251+ records), mocking strategies, assertion best practices, and disciplined test-fix loops. Use this skill when creating new Apex test classes, improving test coverage, debugging and fixing failing Apex tests, running test execution and coverage analysis, or implementing testing patterns for triggers, services, controllers, batch jobs, queueables, and integrations. Triggers on *Test.cls, *_Test.cls files, sf apex run test workflows, coverage reports, test-fix loops. Do NOT trigger for production Apex code (use platform-apex-generate) or Jest/LWC tests.

Type
Skill
Author
forcedotcom
GitHub stars
1.1K
Installs
7.1K
Last updated
October 30, 2026

Install

npx skills add https://github.com/forcedotcom/sf-skills --skill platform-apex-test-generate

About this skill

Generates and validates Apex test classes, covering TestDataFactory patterns, bulk testing with 251+ records, mocking, and assertion practices. Fits Salesforce developers writing or improving tests for triggers, services, controllers, batch jobs, queueables, and integrations. It runs disciplined test-fix loops and triggers on *Test.cls and *_Test.cls files, but not on production Apex or LWC/Jest tests.

Summary written with AI assistance from the project's public description.


Categories


More from forcedotcom


Similar Skills