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 unpackaged Apex tests execution after unit tests execution should fail when the code coverage is less than 75% #5547

Closed
kamilkhalid123 opened this issue Apr 22, 2024 · 3 comments

Comments

@kamilkhalid123
Copy link

Summary

I am using sfdx apex:test:run -y -r human -w 160 -c command for running apex tests, My code coverage falls below 70 and the test run step passes. I want it to fail when the test coverage falls below 75%. Can someone help in this?

Steps To Reproduce:

  1. Perform Code commit
  2. Unit tests trigger
  3. Check the unpackaged Apex tests execution step in the unit test step results

Expected result

The step: unpackaged Apex tests execution after unit tests execution should fail when the coverage is less than 75%

Actual result

The coverage is 73% and the step is passing.

The command for this in config.yaml is sfdx apex:test:run -y -r human -w 160 -c

Additional information

Feel free to attach a screenshot.

Salesforce Extension Version in VS Code:

SFDX CLI Version:

OS and version:

VS Code version:

@peternhale
Copy link
Contributor

@kamilkhalid123 thank you, but we will also need the following
Additional information
Feel free to attach a screenshot.

Salesforce Extension Version in VS Code:

SFDX CLI Version:

OS and version:

VS Code version:

@CristiCanizales
Copy link
Contributor

Hi @kamilkhalid123, again, we need all the details asked in the template to be able to contextualize your issue. Please provide the following:

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

Copy link

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

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

3 participants