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

The test class runs very slowly #5559

Closed
zt15242 opened this issue Apr 28, 2024 · 6 comments
Closed

The test class runs very slowly #5559

zt15242 opened this issue Apr 28, 2024 · 6 comments

Comments

@zt15242
Copy link

zt15242 commented Apr 28, 2024

Recently, we found that the test class is running very slowly and even fails to compile. Has anyone encountered the same situation? Please guide us on how to solve it.
image

@zt15242 zt15242 changed the title The test class is very slow The test class runs very slowly Apr 29, 2024
@daphne-sfdc
Copy link
Contributor

@zt15242 Can you let us know the following info?

Salesforce Extension Version in VS Code:
Salesforce CLI Version:
OS and version:
VS Code version:

Are these Apex test classes ones that you have seen compile and run quickly in the past, or are these new tests?

What kind of org are you using? Production, sandbox, scratch org, or Trailhead Playground?

You mentioned that the Apex test classes fail to compile - what are the compilation error messages? Check the following places:

  1. Output tab with dropdown Apex
  2. Problems tab
  3. Run Developer: Toggle Developer Tools from the command palette

Regarding the slow-running Apex tests - go to Setup -> Apex Test Execution. On that page, click Options. In the popup, is the box for Disable Parallel Apex Testing checked or unchecked?
Screenshot 2024-04-29 at 11 44 49 AM

@zt15242
Copy link
Author

zt15242 commented Apr 30, 2024

@daphne-sfdc
Salesforce Extension Version in VS Code: 60.10.0
Salesforce CLI Version: 60.10.0
OS and version:Windows10
VS Code version:1.88.0(system setup)

I checked the system and found that disabling parallel vertex testing is checked

@mingxuanzhangsfdx
Copy link
Member

Hi @zt15242 -

Where do you run the apex tests from? Developer console or the VS Code extensions?

Also please let us know what the exact compilation errors are.

@zt15242
Copy link
Author

zt15242 commented May 7, 2024

Hi @mingxuanzhangsfdx
We can reproduce this issue when running test classes in the developer console or VS code extension.
At present, it only operates slowly with a long cycle.

@peternhale
Copy link
Contributor

@zt15242 Given you are seeing the slow runs in both dev console and vscode, I would suggest contacting Salesforce Support as this appears to be a server side issue.

Copy link

This issue has not received a response in 3 days. It will auto-close in 2 days unless a response is posted.

@github-actions github-actions bot added the stale label May 11, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants