testWidgets function
- @isTest
- String description,
- WidgetTesterCallback callback, {
- bool? skip,
- Timeout? timeout,
- bool semanticsEnabled = true,
- TestVariant<
Object?> variant = const flutter_test.DefaultTestVariant(), - dynamic tags,
- int? retry,
- 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,
);