Skip to main content
edited tags
Link
Ratan Paul
  • 22.8k
  • 14
  • 55
  • 99
Tweeted twitter.com/StackSalesforce/status/652209380868403200
Source Link
xyz sfdc
  • 179
  • 1
  • 11

Why do we have @TestSetup, when the result is as equal to not using them?

If you create additional test records inside a test method, those records are rolled back at the end of the test method’s execution, which also happens when you’re not using test setup methods.

https://developer.salesforce.com/releases/release/Spring15/TestClasses