sf apex run test
--wait allows value -1 but does not respect it
#2110
Labels
bug
Issue or pull request that identifies or fixes a bug
investigating
We're actively investigating this issue
Summary
The command
sf apex run test
allows specifying a--wait
flag value as-1
, however, this value seems to be ignored and the command exits and returns after the default 1 minute wait time instead.Previously, with
sfdx force:apex:test:run
the value-1
was allowed and was treated as wait indefinitely.Steps To Reproduce:
Expected result
Command should wait until all tests have finished execution and display test results.
Alternatively, if
-1
is no longer a supported value for the--wait
flag the command should return an error for that flag detailing the allowed range of values, in similar fashion tosf project deploy start --wait
Actual result
System Information
CLI Version:
@salesforce/cli/1.75.6
Architecture:
linux-x64
Node Version:
node-v18.16.0
Plugin Version:
@oclif/plugin-autocomplete 2.1.9 (core)
@oclif/plugin-commands 2.2.14 (core)
@oclif/plugin-help 5.2.9 (core)
@oclif/plugin-not-found 2.3.23 (core)
@oclif/plugin-plugins 2.4.6 (core)
@oclif/plugin-search 0.0.16 (core)
@oclif/plugin-update 3.1.12 (core)
@oclif/plugin-version 1.3.3 (core)
@oclif/plugin-warn-if-update-available 2.0.35 (core)
@oclif/plugin-which 2.2.19 (core)
@salesforce/cli 1.75.6 (core)
apex 2.2.13 (core)
auth 2.7.12 (core)
data 2.3.10 (core)
deploy-retrieve 1.8.14 (core)
info 2.6.7 (core)
limits 2.3.13 (core)
login 1.2.5 (core)
org 2.7.0 (core)
schema 2.3.8 (core)
settings 1.4.4 (core)
sobject 0.1.17 (core)
source 2.10.2 (core)
telemetry 2.1.4 (core)
templates 55.4.9 (core)
trust 2.4.9 (core)
user 2.3.8 (core)
gr-sfdx-plugin 0.0.0 (link) /home/alan.morey/repos/salesforce/gr-sfdx-plugin
OS and Version:
Linux 5.19.0-40-generic
Shell:
zsh
Root Path:
/home/alan.morey/.npm-packages/lib/node_modules/@salesforce/cli
The text was updated successfully, but these errors were encountered: