fix(apex-testing): test suite membership for duplicate class names W-21655085#7016
Merged
Conversation
daphne-sfdc
approved these changes
Mar 19, 2026
daphne-sfdc
left a comment
Contributor
There was a problem hiding this comment.
In salesforcedx-apex (cristi/duped-classname-suite branch)
yarn installyarn buildyarn link
In salesforcedx-vscode (cristi/duped-classname-suite branch)
npm installyarn link @salesforce/apex-nodenpm run compile- Launch Extensions
Test Cases
- Create a test suite Suite1 with 2 entries: GlobalTestClass0000 and svcideebot.GlobalTestClass0000 ✅
- Create a test suite Suite2 with GlobalTestClass0000 -> add svcideebot.GlobalTestClass0000 to Suite2 ✅
- Create a test suite Suite3 with svcideebot.GlobalTestClass0000 -> add GlobalTestClass0000 to Suite3 ✅
- Run Suite1 ✅
- Add a different unrelated test to Suite2 ✅
- Run Suite2 ✅
- Try to add GlobalTestClass0000 again to Suite3 ✅
- Try to add svcideebot.GlobalTestClass0000 again to Suite3 ✅
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What issues does this PR fix or reference?
@W-21655085@
Summary
fullClassName(getFullClassName) intoTestService.buildSuiteso local + namespaced same-name classes both land in the suite.@salesforce/apex-nodegetApexClassIds/buildSuitefix (namespace-aware lookup). Ship after@salesforce/apex-node@8.4.13is on npm (or link local apex-node); then refresh lockfile so^8.4.10resolves to 8.4.13+.isFlowTest), aligned with run-class picker.catch→Error(lint/TS).Testing
packages/salesforcedx-vscode-apex-testing: compile, lint, jest, Playwright apex test suite spec as applicable.Dependency
@salesforce/apex-node@8.4.13publish (salesforcedx-apex PR).