run method

void run({
  1. String? testOn,
  2. Timeout? timeout,
  3. dynamic skip,
  4. dynamic tags,
  5. Map<String, dynamic>? onPlatform,
  6. int? retry,
})

runs the list of test cases sequentially by first assembling, acting and then asserting for the specfic test case

Implementation

void run(

    /// wrapper
    {String? testOn,

    /// wrapper
    Timeout? timeout,

    /// wrapper
    dynamic skip,

    /// wrapper
    dynamic tags,

    /// wrapper
    Map<String, dynamic>? onPlatform,

    /// wrapper
    int? retry}) {
  for (var _testCase in _testCaseList) {
    T _unit;
    _unit = _testCase.assembler();
    _testCase.actors.forEach((actorFunc) {
      _unit = actorFunc(_unit);
    });
    _testCase.matchers.forEach((matcherFunc) {
      test(
        _testCase.description,
        () {
          matcherFunc(_unit);
        },
        testOn: testOn,
        timeout: timeout,
        skip: skip,
        tags: tags,
        onPlatform: onPlatform,
        retry: retry,
      );
    });
  }
}