test method
void
test({
- IntegrationTestWidgetsFlutterBinding? binding,
- String? testDescription,
- int? nrFeature,
- IntegrationMocks? mocks,
Runs this IntegrationFeature's IntegrationScenario.test methods.
Implementation
void test({
IntegrationTestWidgetsFlutterBinding? binding,
String? testDescription,
int? nrFeature,
IntegrationMocks? mocks,
}) {
flutter_test.group(
_description,
() {
final _mocks = mocks ?? IntegrationMocks();
_setUpMocks?.call(_mocks);
_setUpAndTeardown(mocks: _mocks);
for (int nrScenario = 0; nrScenario < _scenarios.length; nrScenario++) {
_scenarios[nrScenario].test(
binding: _binding ?? binding,
featureDescription: _description,
testDescription: testDescription,
nrScenario: nrScenario,
nrFeature: nrFeature,
);
}
},
);
}