Salesforce Known Issues
Trailblazer Community

Code coverage issue

Apex , Developer Console

Summary: ApexCodeCoverage records may be missing for Apex classes when Apex test classes run for more than 3 minutes. For example, assume we have the class ApexClassA, which is tested by: * ApexClassA_Test1 (has 2 methods) and * ApexClassA_Test2 (has 10 methods) If you run just ApexClassA_Test1...

In Review ·Reported By 3 ·Updated Yesterday

Platform Events Trigger does not fire and has 0% coverage when run in test context via change set.

Change Sets

- Platform Events Trigger does not fire and has 0% coverage when run in test context via change set. - Actual Result. Validation failed: ================== The following triggers have 0% code coverage. Each trigger must have at least 1% code coverage. CloudNewsTrigger ================== -...

Fixed - Summer '17 Patch 17.0 ·Reported By 25 ·Updated 2022-02-10

Code coverage shows incorrectly as 0% when deploying change sets with the option "Run specified tests"

Apex , Change Sets

Incorrect percentage display (0%) for Change Set validations/deploys with insufficient code coverage.

Fixed - Winter '19 ·Reported By 37 ·Updated 2022-02-10

source:deploy displays unknown error when deployment fails due to code coverage

Apex

When running source:deploy to deploy an apex class with a specified test that fails due to code coverage the deployment reason shows as unknown.

No Fix ·Reported By 1 ·Updated 2021-06-14

Deactivating trigger using Fast Deploy throwing code coverage error

Apex , Metadata

Deactivating a trigger using Fast Deploy feature fails with the 0% code coverage error

No Fix ·Reported By 4 ·Updated 2016-04-07

Code coverage of triggers become 0% if server shuts down during a deployment

Metadata

If apex test execution on a deployment which runs all tests resumes due to a server shutdown, code coverages for new triggers can become 0%. And the deployment fails with the message, "Test coverage of selected Apex Trigger is 0%, at least 1% test coverage is required".

In Review ·Reported By 4 ·Updated 2022-07-28

Non-test methods in a test class are counted as part of Apex code Coverage

Apex , Platform

Non-test methods in a test class are counted as part of Apex code Coverage

Fixed - Summer '18 ·Reported By 37 ·Updated 2022-02-10

Code coverage results get incorrect if apex tests are resumed after app server restart

Apex

Code coverage for apex classes which are newly created at a deployment could be incorrect if apex tests are resumed due to an app server shutdown or a DB termination.

Fixed - Summer '17 Patch 7.0 ·Reported By 8 ·Updated 2022-02-10

ChatterAnswersAuthProviderRegTest class (Added by enabling Chatter Answers) fails

Apex

When "Chatter Answers" is enabled, salesforce adds "ChatterAnswersAuthProviderRegTest" class to customer orgs (among other classes). If we go to this class right away and Run Test, it fails with following error. System.DmlException: Insert failed. First exception on row 0; first error: FIELD_INTEGRITY_EXCEPTION,...

No Fix ·Reported By 28 ·Updated 2017-03-30

Deployment is failing due to INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, Access to entity 'Question' denied: [] Error

Apex

During deployment some customers noticed that their tests are failing due to INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, Access to entity 'Question' denied: [] Error

Fixed - Spring '21 ·Reported By 1 ·Updated 2020-12-02

1 to 10 of 21 | Next

Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.