TestRunProfile constructor

TestRunProfile({
  1. String? label,
  2. TestRunProfileKind? kind,
  3. bool? isDefault,
  4. bool? supportsContinuousRun,
  5. TestTag? tag,
  6. void configureHandler()?,
  7. FutureOr<void> runHandler(
    1. TestRunRequest,
    2. CancellationToken
    )?,
  8. void dispose()?,
})

Implementation

factory TestRunProfile({
  _i2.String? label,
  _i3.TestRunProfileKind? kind,
  _i2.bool? isDefault,
  _i2.bool? supportsContinuousRun,
  _i3.TestTag? tag,
  void Function()? configureHandler,
  _i4.FutureOr<void> Function(
    _i3.TestRunRequest,
    _i3.CancellationToken,
  )? runHandler,
  void Function()? dispose,
}) =>
    TestRunProfile._(
      label: label,
      kind: kind?.name,
      isDefault: isDefault,
      supportsContinuousRun: supportsContinuousRun,
      tag: tag ?? _i6.undefined,
      configureHandler: configureHandler == null
          ? _i6.undefined
          : _i5.allowInterop(configureHandler),
      runHandler: runHandler == null
          ? null
          : _i5.allowInterop((
              p0,
              p1,
            ) =>
              _i6.Promise.futureOr(() => runHandler(
                    p0,
                    p1,
                  ))),
      dispose: dispose == null ? null : _i5.allowInterop(dispose),
    );