platform-apex-test-generate
A Salesforce skill for writing and fixing Apex test classes.
スキルの内容
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.
できること
- Generate Apex test classes with a test data factory
- Write bulk and negative tests
- Run Apex tests and read coverage
- Fix failing Apex tests
概要
- 公開元
- Salesforce
- ツール
- Salesforce
インストール
- すべてのクライアントに追加するには、次のコマンドを実行します:
npx skills add forcedotcom/sf-skills
含まれるファイル
- 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サーバーやスキルは、お使いのコンピューターでコードを実行したり、データを操作したりできます。インストールする前にソースを確認してください。
詳細
| 項目 | 内容 | 出典 |
|---|---|---|
| 種類 | スキル | |
| ツール | Salesforce | |
| 公開元 | Salesforce | 出典 |
| 公式かどうか | 公式Salesforce's developer documentation for its skills and plugins links to the forcedotcom/sf-skills repository | 出典 |
| APIキーまたはサインインが必要 | ドキュメントに記載なし | |
| スクリプトを含む | いいえ | 出典 |
| プラットフォーム | ドキュメントに記載なし | |
| AIクライアント | ドキュメントに記載なし | |
| ライセンス | Apache-2.0 | 出典 |
| 料金 | ドキュメントに記載なし | |
| 活動状況 | 最終コミット 2026年11月6日GitHubスター 1,156ダウンロード数のデータなし(npm・PyPIで未公開) | 出典 |
| リンク | リポジトリ |
出典
- スキルファイル(SKILL.md)github.com/forcedotcom/sf-skills2026年11月10日
- README(README.md)github.com/forcedotcom/sf-skills2026年11月13日
- ライセンスファイル(LICENSE.txt)github.com/forcedotcom/sf-skills · 根拠となる項目:ライセンス, 公開元2026年11月13日
- Webページdeveloper.salesforce.com · 根拠となる項目:公式かどうか2026年11月13日
- リポジトリ内のフォルダ(platform-apex-test-generate)github.com/forcedotcom/sf-skills · 根拠となる項目:スクリプトを含む2026年11月10日
- GitHubリポジトリgithub.com/forcedotcom/sf-skills · 根拠となる項目:活動状況, ライセンス2026年11月11日