testWidgets function

  1. @isTest
void testWidgets(
  1. String description,
  2. WidgetTesterCallback callback, {
  3. bool? skip,
  4. Timeout? timeout,
  5. bool semanticsEnabled = true,
  6. TestVariant<Object?> variant = const flutter_test.DefaultTestVariant(),
  7. dynamic tags,
  8. int? retry,
  9. Duration? stallAfter,
})

Same as testWidgets from flutter_test, under the tarpit watchdog; see tarpitWidgets. experimentalLeakTesting is not supported here: use flutter_test's testWidgets for those tests.

Implementation

@isTest
void testWidgets(
  String description,
  flutter_test.WidgetTesterCallback callback, {
  bool? skip,
  flutter_test.Timeout? timeout,
  bool semanticsEnabled = true,
  flutter_test.TestVariant<Object?> variant =
      const flutter_test.DefaultTestVariant(),
  dynamic tags,
  int? retry,
  Duration? stallAfter,
}) => tarpitWidgets(
  description,
  callback,
  skip: skip,
  timeout: timeout,
  semanticsEnabled: semanticsEnabled,
  variant: variant,
  tags: tags,
  retry: retry,
  stallAfter: stallAfter,
);