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
8 days agoCasandra
18 days agoChantay
22 days agoCarlton
3 days agoTasia
6 days agoBrandon
22 days agoNatalya
24 days ago