Skip to main content
Run any Skill in Manus
with one click

soql-lib-testing

Stars152
Forks29
UpdatedMarch 27, 2026 at 20:56

Writes unit tests for Salesforce Apex code that uses SOQL Lib (SOQL.cls). Covers SOQL.mock() setup by mockId string or SObjectType, thenReturn() for records/lists/counts/aggregate results, throwException() mocking, and sequential mocks for multiple calls. Use when writing @IsTest classes that call SOQL Lib selectors or inline SOQL.of() queries, or when asked how to mock SOQL queries in Apex unit tests.

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

SKILL.md
readonly