setUpAll method

void setUpAll(
  1. FutureOr callback(), {
  2. TestLocation? location,
})

Registers a function to be run once before all tests.

Implementation

void setUpAll(
  FutureOr<dynamic> Function() callback, {
  TestLocation? location,
}) {
  _checkNotBuilt('setUpAll');
  if (_collectTraces) _setUpAllTrace ??= Trace.current(2);
  _setUpAllLocation ??= location;
  _setUpAlls.add(callback);
}