Use this tag for questions about the Flutter integration_test package, used to write and run integration tests (end-to-end/GUI tests).
Questions tagged [flutter-integration-test]
137 questions
2
votes
1 answer
Passing dart environment variables in xcodebuild build-for-testing command
I'm trying to run my flutter integration tests on firebase test lab. Therefore I'm using dart environment variables to set my login credentials. To setup the ios test version I need to run the following command:
xcodebuild -workspace…

Dix20
- 178
- 2
- 8
2
votes
3 answers
Flutter Driver: How to check device orientation?
How can I check the device orientation inside a flutter integration test within a flutter driver test?
SystemChrome.setPreferredOrientations
IS NOT AVAILABLE IN FLUTTER TEST!!!
See: https://stackoverflow.com/a/52576882/11999287

th_lo
- 461
- 3
- 18
2
votes
1 answer
How to end-to-end test notifications in Flutter?
I have a flutter app that uses flutter_local_notifications package to show notifications.
Is it possible to have integration_test in form of end-to-end tests like this:
notification is scheduled (e.g. 10 seconds in future), app is closed,…

Maciej Pszczolinski
- 1,623
- 1
- 19
- 38
2
votes
2 answers
Flutter Integration testing failing when moving between tests
Currently in my project I am adding multiple integration tests separated in different files. When trying to run all tests running using flutter test integration test, it gives me this error when moving between tests
Error waiting for a debug…

Hugo
- 21
- 1
2
votes
0 answers
Access Provider information in Flutter integration test
I want to access information in one of the Providers used in my app while running integration tests.
I've found some information but doesn't seem to work. I was hoping I could do something like this
User user;
await tester.pumpWidget(
…

Chris
- 1,720
- 16
- 35
2
votes
0 answers
Flutter firebase-auth integration testing signInWithCredential error: The caller does not have permission to execute the specified
I'm trying to run integration tests on my flutter app.
One of the flows I want to test is the Login flow. There is a firebase phone number authentication in the app.
When I'm trying to call signInWithCredential to sign in with the test phone number…

Leo
- 375
- 2
- 3
- 14
2
votes
1 answer
Integration tests work fine from flutter drive, but hang when entering text in Firebase Test Lab
I have the following sign-in test set up for my app:
testWidgets('sign in with email and password', (WidgetTester tester) async {
app.main();
await tester.pumpAndSettle(Duration(seconds: 3));
final emailInputFinder =…

Rob Lyndon
- 12,089
- 5
- 49
- 74
2
votes
1 answer
How to do multiple files of integration tests in flutter 2?
I'm trying to create an integration test for my Flutter app with new integration_test package: https://github.com/flutter/flutter/tree/master/packages/integration_test#integration_test
I have multiple files of integration tests,…

Francesco Bocci
- 827
- 8
- 19
2
votes
2 answers
Allow to run entire folder of tests in flutter new integration tests - just like normal unit tests
I am having a separate integration test file for each screen and I want to run all the integration tests with a single command like “flutter tests”. I looked into the doc but was not able to find any way to do this. This also causes an issue with…

Burhanuddin Rashid
- 5,260
- 6
- 34
- 51
1
vote
1 answer
Flutter> Patrol > Mobile automatization test: How to access to "Subscribe" button on system pop-up Google Play Store?
I'm trying to purchase a subscription in my tests. Everything goes well until the native Android purchase popup appears. I'm not able to tap on the green 'Subscribe' button. Is there a way to do it? The following code doesn't work:
** See…

Agata Olbrycht
- 11
- 2
1
vote
1 answer
Image upload automation using flutter integration test
How we can automate image picker and file picker (file upload event) in flutter apps using flutter integration test??
I tried with patrol but it is not applicable for web ?? is there any other solution??

Ajay sharma
- 21
- 2
1
vote
1 answer
Unable to run Patrol test properly
i'm able to run integration_test using this codes:
##########
# integration_test/openapp_test.dart
##########
import 'package:myapp/main.dart' as app;
group('end-to-end test', () {
testWidgets('tap on the floating action button, verify…

thekucays
- 568
- 3
- 9
- 32
1
vote
0 answers
Is it possible integration test between applications in Firebase Test Lab?
I have an flutter application that needs to integrate/redirect to another application through universal links. The other applications is not mine.
Is it possible to simulate this integration/redirection using Firebase Test Lab?

danilo
- 43
- 5
1
vote
1 answer
Error when running Integration test in Flutter using patrol
I'm trying to run an integration test in flutter using the patrol 1.0.8 package.
Then I got an error when running the test with commanded patrol test integration_test/classic_process_test.dart --verbose on ios physical device.
Error is Error: No…

b_diouf
- 39
- 3
- 11
1
vote
0 answers
How to print the description of testWidgets function in flutter integration test for debugging purpose?
While running flutter integration test, in order to debug the test case from a huge logs file, i want to print the current test case name (i.e Description of testWidgets).
For an ex: currently below test case name is: TC_01 Test User OTP limits…

Jagadeesh
- 358
- 5
- 17