run method
void
run({})
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,
);
});
}
}