convenient_test_dev library
Classes
- ConvenientTest
- ConvenientTestSlot
- EditableTextInfo
- Used for TextField and EditableText
- EnhancedLocalFileComparator
-
GeneralizedEditableTextInfo<
T extends Widget> - GoldenConfig
- GoldenFailureInfo
- GoldenMatcherGenerator
- GoldenTolerationEntry
- LogHandle
- MyComparisonResult
- SimpleHistogram
- TCommand
- TFinderCommand
- TRawCommand
- TRouteNameCommand
- TValueAsyncGetterCommand
- TValueGetterCommand
Extensions
- ConvenientTestFind on ConvenientTest
- ConvenientTestInteraction on ConvenientTest
- ConvenientTestLog on ConvenientTest
- ConvenientTestMisc on ConvenientTest
- ExtCommonFinders on CommonFinders
- ExtFinder on Finder
- ExtGoldenConfig on GoldenConfig
- ExtTCommand on TCommand
- ExtTestWidgetsFlutterBinding on TestWidgetsFlutterBinding
- ExtWidgetController on WidgetController
- ExtWidgetTesterEnterText on WidgetTester
- ExtWidgetTesterPump on WidgetTester
Constants
Properties
-
convenientTestGeneralizedEditableTextInfos
↔ List<
GeneralizedEditableTextInfo< Widget> > -
getter/setter pair
- convenientTestGetFinder ↔ ConvenientTestGetFinder
-
getter/setter pair
- convenientTestRunAsyncEnhancedExceptionChecker ↔ void Function(Object?)
-
When running
runAsyncEnhanced
and see exception, will call this checker. For example, you may want to ignore certain kinds of exceptions, such as network timeoutgetter/setter pair
Functions
-
compareUiImages(
Image testImage, Image masterImage) → Future< MyComparisonResult> -
convenientTestLog(
String title, String message, {LogSubEntryType? type, String? error, String? stackTrace, LiveTest? liveTest}) → LogHandle -
convenientTestMain(
ConvenientTestSlot slot, FutureOr< void> testBody(), {ExecutionEnv executionEnv = ExecutionEnv.deviceTest}) → Future<void> - Please make this the only method in your "main" method.
-
debugWidgetTestSaveScreenshot(
[Finder? finder, String stem = 'debug_screenshot']) → Future< void> -
matchesEnhancedReferenceImage(
Image image, GoldenConfig config) → AsyncMatcher -
testGroupsToName(
List< Group> testGroups) → String -
tTestWidgets(
String description, TWidgetTesterCallback callback, {bool skip = false, bool settle = true, Timeout? timeout}) → void - Wrapper around testWidgets.
Typedefs
- ConvenientTestGetFinder = Finder Function(Object arg)
- EnterTextWithoutReplaceLogCallback = void Function(TextEditingValue oldValue, TextEditingValue newValue)
-
LogSnapshot
= Future<
void> Function({List<int> ? image, String name}) - LogUpdate = void Function(String title, String message, {String? error, bool printing, String? stackTrace, required LogSubEntryType type})
-
TWidgetTesterCallback
= Future<
void> Function(ConvenientTest t)