Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

Apex test generation and repair v1.0.0

Use this resource to write and pass Apex test classes, with coverage

New

  • 519 downloads
  • 195 likes
  • 239 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install apex-test-class-generation

With no option, the skill goes to ~/.agents/skills/; add --agent claude-code (or codex, cursor…) to target an agent.

First time: connect the CLI with

npx --yes palatekit@latest login

The agent generates test classes for triggers, services, controllers, batch jobs, queueables and callouts, using data factories and mocks, then runs the tests and analyzes the results. It fixes failing tests and improves coverage; production code belongs to another skill.

Mostly picked by

Updated November 2, 2026

Card for the “Apex test generation and repair” skill

Details

Generates with
Your agent's model
Licence
Apache-2.0

Similar resources

View all

What you get

  • SKILL.md: generation, run and result analysis workflow
  • references/ and assets/: data factory, mocking, assertion and async testing templates

Good fit for

  • You need to reach minimum coverage before deployment
  • A trigger is only tested on a single isolated record

Not for

    Tags

    • apex
    • tests
    • coverage
    • salesforce
    • mocks

    About

    You say

    “Write the Apex tests for my Opportunity trigger with 251 records, then run them.”

    Card for the “Apex test generation and repair” skill

    Skill published by forcedotcom under the Apache-2.0 license, delivered in its original version.

    Show more

    How to use it

    1. Install the skill in your agent's skills folder
    2. Ask your agent to write and pass Apex test classes, with coverage
    3. Review and adjust the result

    Content preview

    Files

    • assets/test-class-template.cls3.3 KB
    • assets/test-data-factory-template.cls4.8 KB
    • LICENSE11.4 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • references/assertion-patterns.md3.4 KB
    • references/async-testing.md5.9 KB
    • references/mocking-patterns.md5.9 KB
    • references/test-data-factory.md2.5 KB
    • SKILL.md9.9 KB

    Origin and licence

    Listed unmodified

    Author
    forcedotcom
    Source
    github.com/forcedotcom/sf-skills/tree/985407c7f7896030759d3310fe47d652265916b3/skills/platform-apex-test-generate
    Licence
    Apache-2.0

    Notice

    « platform-apex-test-generate » (forcedotcom, Apache-2.0) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.