-
Notifications
You must be signed in to change notification settings - Fork 393
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
feat: introduce 3 Apex Test Suite commands #3435
Conversation
Wow, awesome to see this added to the product! 🎉🎉 |
return { | ||
label: testSuite.TestSuiteName, | ||
// @ts-ignore | ||
description: testSuite.Id, |
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.
The field is named incorrectly in the apex-node package so we'll need to update that so we can remove the ts-ignore
here
@@ -17,5 +17,8 @@ | |||
"force_apex_test_last_method_run_text": "SFDX: Re-Run Last Run Apex Test Method", | |||
"force_apex_test_class_run_text": "SFDX: Run Apex Test Class", | |||
"force_apex_test_method_run_text": "SFDX: Run Apex Test Method", | |||
"force_apex_test_run_text": "SFDX: Run Apex Tests" | |||
"force_apex_test_run_text": "SFDX: Run Apex Tests", | |||
"force_apex_test_suite_run_text": "SFDX: Run Apex Test Suite", |
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.
please have @sbudhirajadoc review this
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.
the messages were approved beforehand in a separate doc! thanks sonal!
const apexClassItems: ApexTestQuickPickItem[] = []; | ||
|
||
apexClasses.forEach(apexClass => { | ||
const fileContent = readFileSync(apexClass.fsPath).toString(); |
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.
We should keep in mind the perf impact of this. I tested in perf-project and it took ~1s for loading the menu.
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.
A change at this moment might not be needed, but if there's performance issues we should consider if we can reuse information from language server.
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.
I agree - I followed the pattern we're using elsewhere, but I think both should be examined to see if we can find a better approach.
What does this PR do?
This PR introduces Test Suites to our command palette. It adds the following commands:
SFDX: Run Apex Test Suite
SFDX: Create Apex Test Suite
SFDX: Add Tests to Apex Test Suite
What issues does this PR fix or reference?
@W-9632080@
@W-9632072@
@W-9632048@
Functionality Before
new functionality!
Functionality After
Screen.Recording.2021-06-04.at.10.23.30.AM.mov