From 565b85146286ad132e5b3ac7a8b14fedb66bc269 Mon Sep 17 00:00:00 2001 From: Paul Huliganga Date: Wed, 25 Feb 2026 09:42:39 -0500 Subject: [PATCH] docs: add section for running tests for individual classes only - Added examples for each test class: DocusignCompositeEnvelopeBuilderTest, DocusignEnvelopeRequestHandlerTest, DocusignAPIServiceTest, DocusignCredentialsTest - Included both Bash/WSL and PowerShell versions - Useful for targeted testing during development - Includes --code-coverage flag for coverage metrics --- .../docs/DEPLOYMENT_AND_TESTING.md | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/composite-envelope-builder/docs/DEPLOYMENT_AND_TESTING.md b/composite-envelope-builder/docs/DEPLOYMENT_AND_TESTING.md index 268fc16..d67c05d 100644 --- a/composite-envelope-builder/docs/DEPLOYMENT_AND_TESTING.md +++ b/composite-envelope-builder/docs/DEPLOYMENT_AND_TESTING.md @@ -122,6 +122,40 @@ sf apex run test --class-names DocusignEnvelopeRequestHandlerTest --method-names --- +**Run tests for a specific class only:** + +Bash/WSL: +```bash +# Test the main invocable class +sf apex run test --class-names DocusignCompositeEnvelopeBuilderTest --wait 10 --result-format human --code-coverage --target-org dev-org + +# Test the request handler +sf apex run test --class-names DocusignEnvelopeRequestHandlerTest --wait 10 --result-format human --code-coverage --target-org dev-org + +# Test the API service +sf apex run test --class-names DocusignAPIServiceTest --wait 10 --result-format human --code-coverage --target-org dev-org + +# Test the credentials helper +sf apex run test --class-names DocusignCredentialsTest --wait 10 --result-format human --code-coverage --target-org dev-org +``` + +PowerShell: +```powershell +# Test the main invocable class +sf apex run test --class-names DocusignCompositeEnvelopeBuilderTest --wait 10 --result-format human --code-coverage --target-org dev-org + +# Test the request handler +sf apex run test --class-names DocusignEnvelopeRequestHandlerTest --wait 10 --result-format human --code-coverage --target-org dev-org + +# Test the API service +sf apex run test --class-names DocusignAPIServiceTest --wait 10 --result-format human --code-coverage --target-org dev-org + +# Test the credentials helper +sf apex run test --class-names DocusignCredentialsTest --wait 10 --result-format human --code-coverage --target-org dev-org +``` + +--- + **Run ALL tests with JSON output (for parsing):** Bash/WSL: