elementary_test library

Classes

WMContext
Interface for emulating BuildContext behaviour.
WMTester<WM extends WidgetModel<ElementaryWidget<IWidgetModel>, ElementaryModel>, W extends ElementaryWidget<IWidgetModel>>
Interface for control wm stage in test.

Functions

testWidgetModel<WM extends WidgetModel<ElementaryWidget<IWidgetModel>, ElementaryModel>, W extends ElementaryWidget<IWidgetModel>>(String description, WM setupWm(), dynamic testFunction(WM wm, WMTester<WM, W> tester, WMContext context), {String? testOn, Timeout? timeout, dynamic skip, dynamic tags, Map<String, dynamic>? onPlatform, int? retry}) → void
Testing function for test WidgetModel. description - description of test. setupWm - function should return wm that will be test. testFunction - function that test wm. skip - should skip the test. If passed a String or true, the test is skipped. If it's a String, it should explain why the test is skipped; this reason will be printed instead of running the test.