exec method

Future exec({
  1. int? maxLaps,
  2. Duration? maxSpan,
})

Execute all tests and output results (asynchronous)

Implementation

Future exec({int? maxLaps, Duration? maxSpan}) async {
  this.maxLaps = maxLaps;
  this.maxSpan = maxSpan;

  isOutLaps = (maxLaps == null);

  for (var i = 0, n = tests.length; i < n; i++) {
    await tests[i].exec(maxLaps: maxLaps, maxSpan: maxSpan);
  }

  out.exec();
}