flutter/packages/integration_test/example
Greg Spencer ab2b0851a2
Add smoke tests for all the examples, fix 17 broken examples. (#89021)
This adds a smoke test for every single API example. It also fixes 17 tests that had bugs in them, or were otherwise broken, and even fixes one actual bug in the framework, and one limitation in the framework.

The bug in the framework is that NetworkImage's _loadAsync method had await response.drain<List<int>>();, but if the response is null, it will throw a cryptic exception saying that Null can't be assigned to List<int>. The fix was just to use await response.drain<void>(); instead.

The limitation is that RelativePositionedTransition takes an Animation<Rect> rect parameter, and if you want to use a RectTween with it, the value emitted there is Rect?, and one of the examples was just casting from Animation<Rect> to Animation<Rect?>, which is invalid, so I modified RelativePositionedTransition to take a Rect? and just use Rect.zero if the rect is null.
2021-09-28 09:32:06 -07:00
..
android Android e2e screenshot (#84472) 2021-07-20 13:36:04 -07:00
integration_test Revert "Refactor iOS integration_test API to support Swift, dynamically add native tests (#88013)" (#88377) 2021-08-17 14:54:14 -07:00
ios Migrate iOS project to Xcode 13 compatibility (#90304) 2021-09-22 13:23:05 -07:00
lib Enable library_private_types_in_public_api lint (#81578) 2021-05-10 16:26:16 -07:00
test_driver Android e2e screenshot (#84472) 2021-07-20 13:36:04 -07:00
web Move package:integration_test to flutter/flutter (#69622) 2020-11-05 17:28:47 -08:00
.gitignore remove ephemeral files (#70818) 2020-11-19 10:03:09 -08:00
pubspec.yaml Add smoke tests for all the examples, fix 17 broken examples. (#89021) 2021-09-28 09:32:06 -07:00
README.md Add instructions to integration_test example README (#77090) 2021-03-15 11:13:05 -07:00

integration_test_example

Demonstrates how to use the package:integration_test.

To run integration_test/example_test.dart,

Android / iOS

flutter drive \
  --driver=test_driver/integration_test.dart \
  --target=integration_test/example_test.dart

Web

In one shell, run Chromedriver (download here):

chromedriver --port 8444

Then, in another shell, run flutter drive:

flutter drive \
  --driver=test_driver/integration_test.dart \
  --target=integration_test/example_test.dart \
  -d web-server