Hmm, I'm torn between B and C. Maybe I'll just flip a coin. Or better yet, I'll ask the developer sitting next to me. They'll definitely know the right answer.
I'm a big fan of Option A. Turning off all those triggers, flows, and validations will definitely speed things up. Who needs all that extra stuff anyway?
I'm going to have to go with Option B. Creating a TestDataFactory and calling it from each test method seems more modular and reusable than the other options.
Option C seems like the best solution. Setting up the prerequisite data in a @testSetup method will ensure it's only run once before the tests, rather than in each individual test method.
A: Option C seems like the best solution. Setting up the prerequisite data in a @testSetup method will ensure it's only run once before the tests, rather than in each individual test method.
Anastacia
28 days agoMauricio
3 days agoTheresia
1 months agoEmile
12 days agoMendy
14 days agoJanae
16 days agoJulianna
1 months agoWilliam
10 days agoJaney
13 days agoKimbery
29 days agoTeresita
2 months agoJenelle
21 days agoInes
22 days agoDaron
30 days agoRenea
1 months agoCasandra
2 months agoChantay
2 months agoRefugia
21 days agoBilli
1 months agoCarlton
2 months agoTasia
2 months agoBrandon
2 months agoNatalya
2 months ago