Platform Apex Test Generate

forcedotcom/sf-skills/skills/platform-apex-test-generate

by forcedotcome5164d94d7511c00fa02a5b8b60754b2361e178fNo license1K starsListed Oct 9, 2026Updated Oct 9, 2026Repository updated 2 days ago

Use to generate and validate Apex test classes with TestDataFactory patterns, bulk testing (251+ records), mocking, assertions, and disciplined test-fix loops. Use when creating Apex test classes (for triggers, services, controllers, batch jobs, queueables, and callouts), improving coverage, debugging or fixing failing Apex tests, or running test/coverage analysis. Triggers on *Test.cls files, sf apex run test, coverage reports. Do NOT trigger for production Apex (use platform-apex-generate) or Jest/LWC tests.

Instructions onlySoftware Development

Only the file list is public. File contents are available once the skill is installed in a workspace.

PathSizeType
assets/test-class-template.cls3.2 KBtext/plain
assets/test-data-factory-template.cls4.7 KBtext/plain
references/assertion-patterns.md3.3 KBtext/markdown
references/async-testing.md5.7 KBtext/markdown
references/mocking-patterns.md5.7 KBtext/markdown
references/test-data-factory.md2.4 KBtext/markdown
SKILL.md9.7 KBtext/markdown

Source and attribution

Source:forcedotcom/sf-skillsinskills/platform-apex-test-generateat commite5164d9

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal