Skip to content
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

Test id no longer being reported for current version of Apex Plugin #305

Open
gbockus-sf opened this issue Nov 7, 2022 · 1 comment
Open
Assignees

Comments

@gbockus-sf
Copy link
Contributor

Summary

Note originally reported in slack.

Hi Team,
When we run the test class (sfdx force:apex:test:run -l RunLocalTests -u [email protected] -w 60 --json) with the CLI version 7.114.0 and earlier, we are getting the result as below while the test execution is happening at back-end:
{
"status":0,
"result": {
"testRunId": "thisIsTheTestId"
}
}
Here we are getting the Job ID and we can later find the report using the JOb ID (sfdx force:apex:test:report --testrunid thisIsTheTestId )
But in the CLI version 7.172.0 and latest this same command is not returning any Job ID/testRunId, and it seems that it is returning once the test execution is completed (which is not feasible if the customer's test classes ran for hours, since the customer will not be able to do anything else until test execution is completed)
Is there anything changed on this command with the latest CLI versions?
Any insight on this will be really helpful !

plugins info for working and non-working versions

SFDX Version 7.114.0 (WORKING) output:
% sfdx plugins --core
› Warning: sfdx-cli update available from 7.114.0 to 7.172.0.
@oclif/plugin-autocomplete 0.3.0 (core)
@oclif/plugin-commands 1.3.0 (core)
@oclif/plugin-help 3.3.1 (core)
@oclif/plugin-not-found 1.2.6 (core)
@oclif/plugin-plugins 1.10.11 (core)
@oclif/plugin-update 1.4.0-3 (core)
@oclif/plugin-warn-if-update-available 1.7.3 (core)
@oclif/plugin-which 1.0.4 (core)
[@Salesforce](https://salesforce-internal.slack.com/team/WPB0BC065)
/sfdx-plugin-lwc-test 0.1.7 (core)
[@Salesforce](https://salesforce-internal.slack.com/team/WPB0BC065)
/sfdx-trust 3.6.0 (core)
alias 1.1.10 (core)
apex 0.2.7 (core)
auth 1.7.1 (core)
config 1.2.23 (core)
custom-metadata 1.0.12 (core)
data 0.6.0 (core)
generator 1.2.2 (core)
limits 1.2.1 (core)
org 1.6.9 (core)
salesforce-alm 52.2.5 (core)
schema 1.0.8 (core)
sfdx-cli 7.114.0 (core)
source 1.0.9 (core)
telemetry 1.2.3 (core)
templates 52.1.0 (core)
user 1.4.0 (core)
************************************************************************************************
sfdx version 7.174.0 (Non Working )Output
@oclif/plugin-autocomplete 1.3.1 (core)
@oclif/plugin-commands 2.2.0 (core)
@oclif/plugin-help 5.1.14 (core)
@oclif/plugin-not-found 2.3.3 (core)
@oclif/plugin-plugins 2.1.1 (core)
@oclif/plugin-update 3.0.2 (core)
@oclif/plugin-version 1.1.2 (core)
@oclif/plugin-warn-if-update-available 2.0.6 (core)
@oclif/plugin-which 2.1.0 (core)
[@Salesforce](https://salesforce-internal.slack.com/team/WPB0BC065)
/sfdx-plugin-lwc-test 1.0.1 (core)
alias 2.1.5 (core)
apex 1.3.0 (core)
auth 2.2.15 (core)
community 2.0.10 (core)
config 1.4.21 (core)
custom-metadata 2.0.2 (core)
data 2.1.4 (core)
generator 2.0.7 (core)
info 2.2.0 (core)
limits 2.0.5 (core)
org 2.2.9 (core)
packaging 1.9.4 (core)
salesforce-alm 54.8.3 (core)
schema 2.1.10 (core)
sfdx-cli 7.174.0 (core)
signups 1.2.8 (core)
source 2.0.25 (core)
telemetry 2.0.2 (core)
templates 55.1.0 (core)
trust 2.0.4 (core)
user 2.1.13 (core) (edited)

Expected result

Should return test id for querying the test run.

Actual result

No Test id is returned.

@randi274 randi274 self-assigned this Nov 7, 2022
@randi274
Copy link
Contributor

randi274 commented Nov 7, 2022

This is a result of the -w wait flag being passed in, and with #270 the wait flag isn't performing as expected anyways.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants