I am able to run the Integration tests using following command:
flutter driver --target=integration_test/local_server_tests.dart --flavor=rc --driver=test_driver/main_test.dart
In the driver file I run adb
command to provide permissions to APK package.
As per Flutter documentation, we should be able to migrate flutter driver
to flutter test
command.
I am able to run very basic test using flutter test
but when it asks for permission on android emulator, the test fails. The flutter test
doesn't access any driver file.
Can anybody help how to run flutter test
for integration tests along with providing required permissions to APK package?
When I run using flutter driver
its not possible to get the logs of individual tests which are failing (or passing). How to get separate logs for each test run individually?