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
7 days agoTheresia
1 months agoEmile
16 days agoMendy
18 days agoJanae
20 days agoJulianna
2 months agoWilliam
14 days agoJaney
17 days agoKimbery
1 months agoTeresita
2 months agoJenelle
25 days agoInes
26 days agoDaron
1 months agoRenea
2 months agoCasandra
2 months agoChantay
2 months agoRefugia
25 days agoBilli
1 months agoCarlton
2 months agoTasia
2 months agoBrandon
2 months agoNatalya
2 months ago