Apex Unit Tests Should Not Use @isTest(seeAllData=true)

< 1 min read

Impact area

Manageability

Severity

Medium

Affected element

Apex Class

Rule ID #

SF-0002

Impact #

Using @isTest(seeAllData=true) opens up the existing database data for unexpected modification by tests.

Remediation #

Remove this annotation in your unit tests.

Time to fix #

60 min

Updated on March 21, 2025
Was it helpful ?