
Generating Apex Test
This generates complete Apex test classes with proper structure and runs test-fix loops until coverage targets are met. It enforces TestDataFactory patterns, bulkifies to 251+ records to cross governor boundaries, and uses modern Assert syntax with meaningful failure messages. The workflow is systematic: gather context, generate both .cls and .cls-meta.xml files, run tests narrow to wide, analyze failures, fix in max 3 iterations. Most useful when you need to hit 75% deploy coverage or debug failing tests without manual back-and-forth. The skill won't touch production Apex code or LWC tests, just test class generation and the disciplined loop to get them green.
- skills.sh installs
- 4.2K
- GitHub stars
- 1.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add forcedotcom/sf-skills --skill generating-apex-test --agent claude-codeInstalls into .claude/skills of the current project.
Files
This generates complete Apex test classes with proper structure and runs test-fix loops until coverage targets are met. It enforces TestDataFactory patterns, bulkifies to 251+ records to cross governor boundaries, and uses modern Assert syntax with meaningful failure messages. The workflow is systematic: gather context, generate both .cls and .cls-meta.xml files, run tests narrow to wide, analyze failures, fix in max 3 iterations. Most useful when you need to hit 75% deploy coverage or debug failing tests without manual back-and-forth. The skill won't touch production Apex code or LWC tests, just test class generation and the disciplined loop to get them green.
Browse the repository on GitHubSponsors
Details
- Repository
- github.com/forcedotcom/sf-skills
- Categories
- Testing & QA, Debugging, Automation & Workflows
- First seen
- Jun 3, 2026
More from forcedotcom/sf-skills
All 158- Generating Flow4.1K
- Generating Custom Field4K
- Generating Custom Object4K
- Generating Permission Set4K
- Generating Flexipage4K
- Generating Custom Tab3.9K
- Generating Custom Application3.9K
- Generating Lightning App3.9K
- Generating Custom Lightning Type3.9K
- Generating List View3.9K
- Generating Validation Rule3.9K
- Data360 Query3.8K
- Data360 Connect3.8K
- Data360 Activate3.8K
- Data360 Prepare3.8K
- Data360 Harmonize3.8K
- Data360 Orchestrate3.8K
- Data360 Segment3.8K
- Developing Agentforce3.8K
- Switching Org3.7K
- Generating Ui Bundle Metadata3.7K
- Building Ui Bundle App3.7K
- Building Ui Bundle Frontend3.7K
- Generating Ui Bundle Features3.7K