Repository navigation
feat: make production deploy test level configurable - #467
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 027752add6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
Pull request overview
Adds a VS Code configuration knob to control the Apex test execution level used during production Salesforce metadata deployments, while keeping non-production deploy behavior unchanged. It also extends deploy option typing in @vlocode/salesforce and adds focused unit tests around the option selection.
Changes:
- Introduces
vlocity.salesforce.productionDeployTestLeveland wires it intoDeployMetadataCommandonly for production org deployments. - Extends
DeployOptions.testLeveltyping and adds unit tests validating production vs non-production option shaping. - Updates extension configuration schema to expose the new setting.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/vscode-extension/src/lib/vlocodeConfiguration.ts | Adds a typed config property for the production deploy test level. |
| packages/vscode-extension/src/commands/metadata/deployMetadataCommand.ts | Applies the configured production-only deploy start options (including test level). |
| packages/vscode-extension/src/commands/metadata/tests/deployMetadataCommand.test.ts | Adds unit coverage for production/non-production deploy option selection. |
| packages/vscode-extension/package.json | Contributes the new VS Code setting (enum + default + descriptions). |
| packages/salesforce/src/connection/metadata/types/deployResult.ts | Extends deploy option typing to include the new test level value. |
|



vlocity.salesforce.productionDeployTestLevelwithRunRelevantTestsas the default andRunLocalTests/RunAllTestsInOrgas alternatives, applied only to production metadata deployments.RunRelevantTestsin deployment option typing and identify its beta status in the settings UI. Salesforce documents this level as available in all API versions: release notes.main.