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
0
votes
0 answers
Flutter Integration Test: How do I test datePicker?
Is there any function like we have for textField for assigning the value?
await tester.enterText(find.byKey(const Key('password')), 'Test@124');
CASE: I want to check selected date is 18 years ago?

Paras Arora
- 605
- 6
- 12
0
votes
0 answers
Uisng Http_mock_adpter on integration testing is not working in flutter
I have been trying to use flutter integration testing. now the code has api calls at several place, so I have modified in a way that a single dio client will be used for api calls, throughout the application as below.
class AppSession extends…

Vetrivelu Murugesan
- 31
- 3
0
votes
0 answers
(Flutter-Patrol) How can I run few patrol's tests in the directory to execute one file/test only once?
The following hierarchy of the integration_test directory:
integration_test
├── patrol
├── 1_test.dart
├── 2_test.dart
├── 3_test.dart
├── 4_test.dart
├── 5_test.dart
└── 6_test.dart
Command to run tests (windows):
patrol test -t…

Agata Olbrycht
- 11
- 2
0
votes
0 answers
How to run integration tests from packages?
I have a project where my structure is like this:
my_project/
features/
feat1/
integration_test/
...
feat2/
integration_test/
...
...
lib/
integration_test/
...
...
I have an issue with…

Ovidiu Uşvat
- 701
- 1
- 6
- 29
0
votes
0 answers
Run Flutter integration test groups with Firebase test lab
I have several test groups written in my flutter app. I can run all the tests in the firebase test lab without an issue. Now I want to run a specific test group with the firebase. the command I use to upload apk is this
command = "gcloud firebase…
0
votes
0 answers
Is there any solution to TimeoutException after 0:01:30.000000: Timeout while waiting for observatory debugger uri error?
I have created the basic workout app with some pages. Also implemented the integration test code for main.dart(HomePage). But after executing the test file screen is getting loaded and stuck, afetr some time showing the Timeout error.
feature file…

Priti M
- 17
- 6
0
votes
1 answer
Flutter integration tests - how to ignore exceptions thrown inside `Timer` callbacks?
I'm trying to write a test for an app which isn't well-implemented, and has an exception that is thrown inside a Timer callback. I'd like to ignore that exception inside my integration test, because I'm not interested in that exception.
That's a…

Bartek Pacia
- 1,085
- 3
- 15
- 37
0
votes
2 answers
Mocking ImagePicker in flutter integration_tests not working
I have tried Flutter Image Picker integration tests and How to test ImagePicker in Flutter Driver?. I am using ImagePicker plugin as below:
final result = await ImagePicker().getImage(source: ImageSource.gallery);
I have tried above solution, still…

Vishnu
- 2,135
- 2
- 30
- 51
0
votes
1 answer
How can I select file during integration test Flutter web
How can I bypass this issue while performing an integration test for Flutter web using Flutter integration_test framework? In this web, I use FilePicker to load a file on a local pc and stuck when performing e2e using integration_test, issue is…
0
votes
0 answers
How to access files from host machine in flutter integration_test?
I have some basic questions which I could not find proper resources. My question is specific to flutter but I assume it could be framework agnostic.
When writing flutter integration_tests, we do:
Create test files in Android studio on host…

Vishnu
- 2,135
- 2
- 30
- 51
0
votes
1 answer
_debugInitializedType == null': is not true thrown and ios app stuck on splashscreen while running via Patrol
Running e2e test via patrol for a flutter written app.
Exception has occurred.
_AssertionError ('package:flutter/src/foundation/binding.dart': Failed assertion: line 149 pos 12: '_debugInitializedType == null': is not true.)

Manish
- 17
- 1
- 9
0
votes
0 answers
Dagger and Intellij Functional Testing configuration to allow debugging
I have an API written in Dagger with maven and it already has some Functional tests. When I run
mvn clean verify
The tests work correctly. However when I try to run them from the IDE, or debug them, the Dagger auto generated code inside the…

carlos palma
- 722
- 3
- 12
- 29
0
votes
0 answers
How to find custom widget in Flutter to test
I want to test the CustomTextField which is based on TextFormField. And this component is a part of a package that is hosted on git and is accessed by adding in pubspec.yaml. I get error finding this CustomTextField in test, see the attach…

Shahroz Javed
- 97
- 1
- 8
0
votes
0 answers
how to setup and run golden tests on firebase
I have a flutter project with an integration test running a golden test:
void main() {
final binding = IntegrationTestWidgetsFlutterBinding.ensureInitialized();
testWidgets('Screenshot test example', (tester) async {
…

Bertuz
- 2,390
- 3
- 25
- 50
0
votes
1 answer
Problem with Patrol while running integration test in Flutter
I have problem with Patrol while running integration test in Flutter. I need to accept some permissions and I want to use to this purpose Petrol package.But in terminal there is an error which seems like this:
Patrol (native): configure()…

Gustawix
- 1
- 1