---
title: "Apex Unit Tests Should Not Use @isTest(seeAllData=true)"
description: "**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…"
url: "https://community-staging.qualityclouds.com/qcdocs/qc/pmd-rules/apex-unit-tests-should-not-use-istestseealldatatrue/"
updated: "2025-03-21"
category: PMD Rules
---

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

**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
