function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
D J RobertsD J Roberts 

Should you use a testDataFactory for testing update DMLs or create the data in the test class?

Hey everyone, 

Trying to understand the concept of the TestDataFactory. It makes sense for the Creating of records, but do any of you include testmethods for updating a set of records? Second question, do you set the parameter seeAllData = true for the TestDataFactory?