sf-testing by jaganpro/sf-skills
npx skills add https://github.com/jaganpro/sf-skills --skill sf-testing当用户需要 Apex 测试执行与失败分析 时使用此技能:运行测试、检查覆盖率、解读失败、提高覆盖率,以及为 Salesforce 代码管理规范的测试-修复循环。
当工作涉及以下内容时,使用 sf-testing:
sf apex run test 工作流当用户进行以下操作时,请委托给其他技能:
询问或推断:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
识别:
调试失败时,从窄范围开始;仅在修复稳定后才扩大范围。
重点关注:
当问题涉及代码或测试质量时:
覆盖:
SeeAllData=false@TestSetup 能提高清晰度和速度时使用它们Test.startTest() 和 Test.stopTest()完成时,按以下顺序报告:
建议格式:
Test run: <scope>
Org: <alias>
Result: <passed / partial / failed>
Coverage: <percent / key classes>
Issues: <highest-signal failures>
Next step: <fix class, add test, rerun scope, or widen regression>
| 分数 | 含义 |
|---|---|
| 108+ | 强大的生产级测试置信度 |
| 96–107 | 良好的测试套件,存在微小差距 |
| 84–95 | 可接受,但需加强覆盖率 / 断言 |
| < 84 | 低于标准;在依赖前需修订 |
每周安装次数
274
代码仓库
GitHub 星标数
219
首次出现
2026年1月22日
安全审计
安装于
codex263
cursor261
opencode261
gemini-cli260
github-copilot258
amp255
Use this skill when the user needs Apex test execution and failure analysis : running tests, checking coverage, interpreting failures, improving coverage, and managing a disciplined test-fix loop for Salesforce code.
Use sf-testing when the work involves:
sf apex run test workflowsDelegate elsewhere when the user is:
Ask for or infer:
Identify:
Start narrow when debugging a failure; widen only after the fix is stable.
Focus on:
When the issue is code or test quality:
Cover:
SeeAllData=false@TestSetup when they improve clarity and speedTest.startTest() with Test.stopTest() when async behavior mattersWhen finishing, report in this order:
Suggested shape:
Test run: <scope>
Org: <alias>
Result: <passed / partial / failed>
Coverage: <percent / key classes>
Issues: <highest-signal failures>
Next step: <fix class, add test, rerun scope, or widen regression>
| Need | Delegate to | Reason |
|---|---|---|
| fix production code or author tests | sf-apex | code generation and repair |
| create bulk / edge-case data | sf-data | realistic test datasets |
| deploy updated tests | sf-deploy | rollout |
| inspect detailed runtime logs | sf-debug | deeper failure analysis |
| Score | Meaning |
|---|---|
| 108+ | strong production-grade test confidence |
| 96–107 | good test suite with minor gaps |
| 84–95 | acceptable but strengthen coverage / assertions |
| < 84 | below standard; revise before relying on it |
Weekly Installs
274
Repository
GitHub Stars
219
First Seen
Jan 22, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex263
cursor261
opencode261
gemini-cli260
github-copilot258
amp255
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
106,200 周安装