View Categories

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

Table of Contents

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

Powered by BetterDocs