
Platform Apex Test Generate
This generates Apex test classes following Salesforce best practices: one behavior per test method, 251+ record bulk testing to cross trigger boundaries, TestDataFactory patterns for isolated test data, and proper use of Test.startTest/stopTest pairs. It enforces the modern Assert class over legacy System.assert methods and includes disciplined test-fix loops with coverage analysis. The skill recognizes *Test.cls files and test-related workflows but deliberately hands off production Apex code to platform-apex-generate. Honest take: the one-behavior-per-method rule and mandatory separation of null versus empty input scenarios will generate more granular test classes than typical hand-rolled suites, which helps debugging but increases file count.
- skills.sh installs
- 7.4K
- GitHub stars
- 1.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add forcedotcom/sf-skills --skill platform-apex-test-generate --agent claude-codeInstalls into .claude/skills of the current project.
Files
Generating Apex Tests
Generate production-ready Apex test classes and run disciplined test-fix loops with coverage analysis.
Core Principles
Sponsors
Details
- Repository
- github.com/forcedotcom/sf-skills
- Categories
- Testing & QA, Debugging, Automation & Workflows
- First seen
- Jul 14, 2026
More from forcedotcom/sf-skills
All 158- Platform Apex Test Run7.2K
- Platform Apex Logs Debug7.1K
- Platform Soql Query7.1K
- Platform Metadata Deploy7K
- Platform Metadata Retrieve6.9K
- Platform Custom Field Generate6.8K
- Platform Docs Get6.8K
- Platform Permission Set Generate6.8K
- Dx Code Analyzer Run6.7K
- Platform Custom Object Generate6.6K
- Automation Flow Generate6.5K
- Experience Lwc Generate6.4K
- Platform Validation Rule Generate6.3K
- Platform Data Manage6.3K
- Dx Org Manage6.2K
- Platform Flexipage Generate6.2K
- Platform Metadata Api Context Get6.2K
- Platform Sharing Rules Generate6.2K
- Design Systems Slds Apply6.1K
- Design Systems Slds Validate6K
- Agentforce Generate6K
- Platform Custom Tab Generate6K
- Dx Code Analyzer Configure5.9K
- Platform Custom Application Generate5.9K