initializeTests method
void
initializeTests()
Implementation
void initializeTests() {
if(testData.isNotEmpty) {
return;
}
_internalInitializeTestData();
appContext.test.initializeTests(
testData: testData,
unitTests: unitTests,
stateTests: stateTests,
widgetTests: widgetTests,
dialogTests: dialogTests,
bottomSheetTests: bottomSheetTests,
drawerTests: drawerTests,
screenTests: screenTests,
workflowTests: workflowTests,
wireframes: wireframes,
);
final libraries = thirdPartyLibraries;
for(final thirdParty in libraries) {
final holder = thirdParty.createScreenTestHolder();
thirdPartyUITests[thirdParty.id] = holder;
thirdParty.test.initializeTests(
testData: testData,
unitTests: holder.afUnitTests,
stateTests: holder.afStateTests,
widgetTests: holder.afWidgetTests,
dialogTests: holder.afDialogTests,
drawerTests: holder.afDrawerTests,
bottomSheetTests: holder.afBottomSheetTests,
screenTests: holder.afScreenTests,
workflowTests: holder.afWorkflowStateTests,
wireframes: wireframes
);
}
sharedTestContext.mergeWith(appContext.test.sharedTestContext);
final workflowBuild = workflowTestsForStateTests;
for(final stateTest in stateTests.all) {
final stateTestId = stateTest.id;
final protoId = AFUIPrototypeID.workflowStateTest.with1(stateTestId);
workflowBuild.addPrototype(id: protoId, stateTestId: stateTestId, actualDisplayId: stateTestId);
}
}