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.
Teresita
6 days agoCasandra
16 days agoChantay
20 days agoCarlton
19 hours agoTasia
4 days agoBrandon
20 days agoNatalya
22 days ago