test method

void test({
  1. IntegrationTestWidgetsFlutterBinding? binding,
  2. String? testDescription,
  3. int? nrFeature,
  4. IntegrationMocks? mocks,
})

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,
        );
      }
    },
  );
}