widget_driver_test
library
Classes
-
DriverTester<T extends WidgetDriver>
-
This is a helper class which makes it easier to test your
WidgetDriver
s.
It provides you with the actual driver
and it has helper methods which you can
use to verify that the notifyWidgets()
is called corretly.
-
MockDriver
-
Use this class to provide mock version of your
WidgetDriver
in your widget tests.
By default, when a widget is running in a test environment, then it will use the hardcoded TestDriver.
But when you are testing your widget, then you probably want to mock the driver which belongs to that widget.
For that purpose you can use this MockDriver.
-
UpdatableDependency<T>
-
Use this class to simplify testing your Drivers which have dependencies coming
from the BuildContext and which could update and trigger that the
didUpdateBuildContext
method of your driver is called.
Extensions
-
Driver
on WidgetTester
-
Provides functionality to help you test your
WidgetDriver
s.