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

ERROR running force:apex:test:run: Specify a test class or test methods when running tests synchronously #3171

Closed
gsbasso opened this issue Apr 22, 2021 · 3 comments

Comments

@gsbasso
Copy link

gsbasso commented Apr 22, 2021

Summary

Unable to run all tests synchronously.

This seems to have been introduced with release sfdx-cli/7.97.0 win32-x64 node-v15.14.0 (literally it was working on our Jenkins server in the morning and then suddenly began to fail in the afternoon, so I can only assume that the CLI version was automatically updated in between).

In the past we have had issues where tests would fail when run asynchronously so we added the -y option to our Jenkins script. Plus it has been our understanding that tests are run synchronously in production.

Steps To Reproduce:

  1. Upgrade to CLI release: sfdx-cli/7.97.0 win32-x64 node-v15.14.0
  2. Run the sfdx command: force:apex:test:run -u <alias> -r junit -c -y -w 90

Expected result

Tests are run

Actual result

ERROR running force:apex:test:run: Specify a test class or test methods when running tests synchronously

Additional information

SFDX CLI Version: sfdx-cli/7.97.0 win32-x64 node-v15.14.0

SFDX plugin Version
@oclif/plugin-autocomplete 0.3.0 (core)
@oclif/plugin-commands 1.3.0 (core)
@oclif/plugin-help 3.2.2 (core)
@oclif/plugin-not-found 1.2.4 (core)
@oclif/plugin-plugins 1.10.0 (core)
@oclif/plugin-update 1.4.0-3 (core)
@oclif/plugin-warn-if-update-available 1.7.0 (core)
@oclif/plugin-which 1.0.3 (core)
@salesforce/sfdx-trust 3.6.0 (core)
alias 1.1.9 (core)
auth 1.5.1 (core)
config 1.2.8 (core)
generator 1.1.5 (core)
salesforcedx 51.8.0 (core)
- data 0.4.3 (core)
- custom-metadata 1.0.12 (core)
- apex 0.1.21 (core)
- user 1.2.8 (core)
- org 1.6.2 (core)
- templates 51.3.0 (core)
- limits 1.0.5 (core)
- salesforce-alm 51.6.11 (core)
- @salesforce/sfdx-plugin-lwc-test 0.1.7 (core)
- schema 1.0.5 (core)
sfdx-cli 7.97.0 (core)
telemetry 1.1.2 (core)

OS and version: Windows 10

@github-actions
Copy link

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

@WillieRuemmele WillieRuemmele transferred this issue from forcedotcom/cli Apr 23, 2021
@AnanyaJha
Copy link
Collaborator

Hi @gsbasso thanks for reporting this! We will be reverting the behavior that caused that change with our next release, more info here as to why it was updated: #3154. We'll update this thread once a new version of the plugin has been released.

@AnanyaJha
Copy link
Collaborator

Closing this issue in favor of #3154.

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