This package utilizes the integration_test
package to run its tests in a web browser.
See flutter.dev > Integration testing for more info.
Make sure you have updated to the latest Flutter master.
Check what version of Chrome is running on the machine you're running tests on.
Download and install driver for that version from here:
Start the driver using chromedriver --port=4444
Run tests: flutter drive -d web-server --browser-name=chrome --driver=test_driver/integration_test_driver.dart --target=integration_test/TEST_NAME.dart
, or (in Linux):
./run_test.sh integration_test/TEST_NAME.dart
./run_test.sh
There's .mocks.dart
files next to the test files that use them.
They're generated by Mockito.
Mocks might be manually re-generated with the following command: flutter pub run build_runner build
. If there are any changes in the mocks, feel free to commit them.
(Mocks will be auto-generated by the run_test.sh
script as well.)