-
Notifications
You must be signed in to change notification settings - Fork 414
W-18078038 - feat: move e2e tests #6179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
package.json
Outdated
@@ -119,7 +132,8 @@ | |||
"aggregateJUnit": "node scripts/aggregate-junit-xml.js", | |||
"link-lsp": "yarn link @salesforce/aura-language-server @salesforce/lwc-language-server @salesforce/lightning-lsp-common && lerna exec yarn link @salesforce/aura-language-server @salesforce/lwc-language-server @salesforce/lightning-lsp-common --scope salesforcedx-vscode-lightning && lerna exec yarn link @salesforce/lwc-language-server @salesforce/lightning-lsp-common --scope salesforcedx-vscode-lwc", | |||
"unlink-lsp": "yarn unlink @salesforce/aura-language-server @salesforce/lwc-language-server @salesforce/lightning-lsp-common && lerna exec yarn unlink @salesforce/aura-language-server @salesforce/lwc-language-server @salesforce/lightning-lsp-common --scope salesforcedx-vscode-lightning && lerna exec yarn unlink @salesforce/lwc-language-server @salesforce/lightning-lsp-common --scope salesforcedx-vscode-lwc", | |||
"report:installs": "ts-node scripts/reportInstalls.ts" | |||
"report:installs": "ts-node scripts/reportInstalls.ts", | |||
"automation-tests": "npm run compile && node ./packages/salesforcedx-vscode-automation-tests/lib/test-setup-and-runner.js" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you create a follow up WI to move each test to the extension it belongs to? let's say the tests that belong to the apex e2e category should go in packages/salesforcedx-vscode-apex/test/e2e-tests and so on
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.github/workflows/runE2ETest.yml
Outdated
@@ -55,7 +45,7 @@ jobs: | |||
mv ./extensions/*/* ./extensions/ | |||
working-directory: salesforcedx-vscode | |||
env: | |||
GITHUB_TOKEN: ${{ secrets.IDEE_GH_TOKEN }} | |||
GH_TOKEN: ${{ secrets.IDEE_GH_TOKEN }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my bad, is old remnant will revert this change.
* fix: fallout from changing LSP restart function Notification modal is dead to me, cmd palette quick pick is my new best friend
* feat: delete from project and org right click * chore: pointless path join
- name: Run headless test | ||
uses: coactions/setup-xvfb@b6b4fcfb9f5a895edadc3bc76318fae0ac17c8b3 | ||
with: | ||
run: | | ||
npm run automation-tests | ||
working-directory: ${{ inputs.automationRepo }} | ||
working-directory: salesforcedx-vscode | ||
env: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@madhur310 I think we need to pass the VSIX_TO_INSTALL value here to get rid of the error you shared in slack
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same for DEV_HUB_ALIAS_NAME
Moves the e2e tests to salesforcedx-vscode package. Triggered them here - https://github.com/forcedotcom/salesforcedx-vscode/actions/runs/14152916419
What does this PR do?
Moves the e2e tests from a separate package to vscode.
What issues does this PR fix or reference?
@W-18078038@
Functionality Before
tests lived in a different package and were checked out and run via GHW.
Functionality After
tests live in the same package, so no need to checkout and simplifies GHW a little bit.