Apex Assertions Should Include Message

< 1 min read

Impact Area

Manageability

Severity

Medium

Affected Element

Apex Class

Rule ID #

SF-ASSERT-MSG

Impact #

Increase the effort needed to debug the test failure and decrease the readability of test output.

Remediation

Add a message that provides more information to the assertion

Time to fix #

10 min

References #

This rule is linked to ApexAssertionsShouldIncludeMessage

Updated on March 21, 2025
Was it helpful ?