platform-apex-test-generate
A Salesforce skill for writing and fixing Apex test classes.
Was der Skill vermittelt
A Salesforce skill for writing and fixing Apex test classes. The agent gathers context about the code under test, generates a test class using a test data factory, @TestSetup methods, bulk tests with 251 or more records, mocks for callouts and clear assertions, then runs the tests with sf apex run test and works through failures in a disciplined loop. It applies to code such as triggers, service classes, controllers, batch and queueable jobs, and callouts, and covers coverage analysis and common anti-patterns to avoid. Production Apex and Jest tests for Lightning Web Components are covered by other skills. It uses the sf CLI.
Funktionen
- Generate Apex test classes with a test data factory
- Write bulk and negative tests
- Run Apex tests and read coverage
- Fix failing Apex tests
Überblick
- Herausgeber
- Salesforce
- Tool
- Salesforce
Installation
- Führe diesen Befehl aus, um ihn zu Beliebiger Client hinzuzufügen:
npx skills add forcedotcom/sf-skills
Was enthalten ist
- assets/test-class-template.cls
- assets/test-data-factory-template.cls
- references/assertion-patterns.md
- references/async-testing.md
- references/mocking-patterns.md
- references/test-data-factory.md
MCP-Server und Skills können Code auf deinem Rechner ausführen und auf deine Daten zugreifen. Prüfe den Quellcode, bevor du etwas installierst.
Details
| Angabe | Wert | Quelle |
|---|---|---|
| Typ | Skill | |
| Tool | Salesforce | |
| Herausgeber | Salesforce | Quelle |
| Offizieller Status | OffiziellSalesforce's developer documentation for its skills and plugins links to the forcedotcom/sf-skills repository | Quelle |
| Braucht API-Key oder Anmeldung | In der Dokumentation nicht angegeben | |
| Enthält Skripte | Nein | Quelle |
| Plattformen | In der Dokumentation nicht angegeben | |
| KI-Clients | In der Dokumentation nicht angegeben | |
| Lizenz | Apache-2.0 | Quelle |
| Preis | In der Dokumentation nicht angegeben | |
| Aktivität | Letzter Commit am 6. Nov. 20261.156 GitHub-SterneKeine Download-Daten verfügbar (nicht auf npm oder PyPI) | Quelle |
| Links | Repository |
Quellen
- Skill-Datei (SKILL.md)github.com/forcedotcom/sf-skills10. Nov. 2026
- README (README.md)github.com/forcedotcom/sf-skills13. Nov. 2026
- Lizenzdatei (LICENSE.txt)github.com/forcedotcom/sf-skills · Belegt: Lizenz, Herausgeber13. Nov. 2026
- Webseitedeveloper.salesforce.com · Belegt: Offizieller Status13. Nov. 2026
- Ordner im Repository (platform-apex-test-generate)github.com/forcedotcom/sf-skills · Belegt: Enthält Skripte10. Nov. 2026
- GitHub-Repositorygithub.com/forcedotcom/sf-skills · Belegt: Aktivität, Lizenz11. Nov. 2026