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
1 months agoMauricio
17 days agoTheresia
2 months agoEmile
26 days agoMendy
28 days agoJanae
1 months agoJulianna
2 months agoWilliam
24 days agoJaney
27 days agoKimbery
1 months agoTeresita
2 months agoJenelle
1 months agoInes
1 months agoDaron
1 months agoRenea
2 months agoCasandra
3 months agoChantay
3 months agoRefugia
1 months agoBilli
2 months agoCarlton
2 months agoTasia
2 months agoBrandon
3 months agoNatalya
3 months ago