Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update README
  • Loading branch information
collinjackson committed Oct 7, 2019
commit fb7b4de9b3330305ec9d5c55b9d1f0b4b693ee6c
24 changes: 23 additions & 1 deletion packages/e2e/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ this test file MainActivityTest.java or another name of your choice.
package com.example.myapp;

import androidx.test.rule.ActivityTestRule;
import dev.flutter.plugins.instrumentationadapter.FlutterRunner;
import dev.flutter.plugins.e2e.FlutterRunner;
import org.junit.Rule;
import org.junit.runner.RunWith;

Expand Down Expand Up @@ -67,6 +67,28 @@ dependencies {
}
```

To run a example app test with Flutter driver:

```
cd example
flutter drive test/<package_name>_e2e.dart
```

To test plugin APIs using Flutter driver:

```
cd example
flutter drive ../test/<package_name>_e2e.dart
```

To e2e test on a local emulator using Android instrumentation:

```
./gradlew connectedAndroidTest -Ptarget=`pwd`/../test_driver/<package_name>_e2e.dart
```

To e2e test using Firebase test lab, follow the instructions on the [e2e README](https://github.com/flutter/plugins/tree/master/packages/e2e) or let CI do it for you.

Use gradle commands to build an instrumentation test for Android.

```
Expand Down