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
9 days agoTheresia
1 months agoEmile
18 days agoMendy
20 days agoJanae
22 days agoJulianna
2 months agoWilliam
16 days agoJaney
19 days agoKimbery
1 months agoTeresita
2 months agoJenelle
27 days agoInes
28 days agoDaron
1 months agoRenea
2 months agoCasandra
2 months agoChantay
2 months agoRefugia
27 days agoBilli
1 months agoCarlton
2 months agoTasia
2 months agoBrandon
2 months agoNatalya
3 months ago