mirror of
https://github.com/forcedotcom/afv-library.git
synced 2026-07-30 11:43:26 +08:00
tweaked description
This commit is contained in:
parent
28de60cd53
commit
4e8f8f49f6
@ -1,17 +1,14 @@
|
||||
---
|
||||
name: generating-apex-test
|
||||
description: >
|
||||
Apex test class generation with TestDataFactory patterns, bulk testing (200+
|
||||
records), mocking strategies for callouts and async operations, and assertion
|
||||
best practices. Use when creating new Apex test classes, improving test
|
||||
coverage, refactoring existing tests, or implementing proper testing patterns
|
||||
for triggers, services, controllers, batch jobs, queueables, and integrations.
|
||||
|
||||
Trigger on any request to create, write, or generate an Apex test class —
|
||||
even when the user doesn't say "test" explicitly. Activate on phrases like:
|
||||
"write tests for," "add coverage for," "test this class," "create a mock,"
|
||||
"I need test data," "improve coverage," or any mention of Apex testing,
|
||||
assertions, or test factories.
|
||||
description: "Apex test class generation with TestDataFactory patterns, bulk testing
|
||||
(200+ records), mocking strategies for callouts and async operations, and assertion
|
||||
best practices. Use this skill when the user asks to create, write, or generate an
|
||||
Apex test class, improve test coverage, refactor existing tests, or implement proper
|
||||
testing patterns for triggers, services, controllers, batch jobs, queueables, and
|
||||
integrations — even when they don't say 'test' explicitly. Activate on phrases like:
|
||||
'write tests for,' 'add coverage for,' 'test this class,' 'create a mock,' 'I need
|
||||
test data,' 'improve coverage,' or any mention of Apex testing, assertions, or test
|
||||
factories."
|
||||
---
|
||||
|
||||
# Apex Test Class Skill
|
||||
|
||||
@ -1,20 +1,14 @@
|
||||
---
|
||||
name: generating-apex
|
||||
description: >
|
||||
Generate production-ready Apex classes for Salesforce following enterprise
|
||||
best practices. Covers all standard class types: service, selector, domain,
|
||||
batch, queueable, schedulable, DTO, utility, interface, abstract, and custom
|
||||
exception classes. Also applies when refactoring or restructuring existing
|
||||
Apex classes.
|
||||
|
||||
SCOPE: Apex classes only. Does not apply to triggers or unit tests.
|
||||
|
||||
Trigger on any request to create, write, build, generate, or scaffold an
|
||||
Apex class — even when the user doesn't say "Apex class" explicitly.
|
||||
Activate on phrases like: "build a service for," "create a handler,"
|
||||
"I need a class that," "write Apex to," "scaffold a batch job,"
|
||||
"create a queueable," or any description of Salesforce server-side logic
|
||||
that implies a class solution.
|
||||
description: "Generate production-ready Apex classes for Salesforce following enterprise
|
||||
best practices. Covers all standard class types: service, selector, domain, batch,
|
||||
queueable, schedulable, DTO, utility, interface, abstract, and custom exception
|
||||
classes. Use this skill when the user asks to create, write, build, generate, scaffold,
|
||||
or refactor an Apex class — even when they don't say 'Apex class' explicitly. Activate
|
||||
on phrases like: 'build a service for,' 'create a handler,' 'I need a class that,'
|
||||
'write Apex to,' 'scaffold a batch job,' 'create a queueable,' or any description of
|
||||
Salesforce server-side logic that implies a class solution. SCOPE: Apex classes only.
|
||||
Does not apply to triggers or unit tests."
|
||||
---
|
||||
|
||||
# Apex Class
|
||||
|
||||
Loading…
Reference in New Issue
Block a user