Skip to main content

Clayton rules - Test data isolation

David Martin avatar
Written by David Martin
Updated this week

Rationale

As a best practice, tests should always be isolated and create their own data. Accessing the org data for unit tests, using the annotation @IsTest(seeAllData=true), should be avoided.

Scope

  • Apex test classes

  • Apex test methods

See also

Did this answer your question?