flutter/packages/integration_test/example
Gray Mackall 120a01ccd2
Restore log dumps for gradle OOM crashes, and set a value for MaxMetaspaceSize (#143085)
Re-sets two jvmargs that were getting cleared because we set a value for `-Xmx`. Could help with https://github.com/flutter/flutter/issues/142957. Copied from comment here https://github.com/flutter/flutter/issues/142957:
>Two random things I ran into while looking into this that might help:
>
>1. Gradle has defaults for a couple of the jvmargs, and setting any one of them clears those defaults for the others (bug here https://github.com/gradle/gradle/issues/19750). This can cause the "Gradle daemon to consume more and more native memory until it crashes", though the bug typically has a different associated error. It seems worth it to re-set those defaults.
>2. There is a property we can set that will give us a heap dump on OOM ([-XX:HeapDumpOnOutOfMemoryError](https://docs.oracle.com/javase/8/docs/technotes/guides/troubleshoot/clopts001.html))

Mostly just a find and replace from `find . -name gradle.properties -exec sed -i '' 's/\-Xmx4G/-Xmx4G\ \-XX:MaxMetaspaceSize=2G\ \-XX:+HeapDumpOnOutOfMemoryError/g' {} \;`, with the templates and the one test that writes from a string replaced by hand. I didn't set a value for `MaxMetaspaceSize` in the template files because I want to make sure this value doesn't cause problems in ci first (changes to the templates are essentially un-revertable for those who `flutter create` while the changes exist).
2024-02-07 19:25:39 +00:00
..
android Restore log dumps for gradle OOM crashes, and set a value for MaxMetaspaceSize (#143085) 2024-02-07 19:25:39 +00:00
integration_test Fix screenshot testing for flutter web integration_test (#117114) 2022-12-22 21:34:04 +00:00
ios Migrate Xcode projects last version checks to Xcode 15.1 (#140256) 2024-01-03 23:05:46 +00:00
lib Bump min SDK to 2.19.0-0 (#117345) 2022-12-20 00:46:14 +00:00
test_driver make integration_test_driver_extended.dart support writeResponseData--(done) (#128382) 2023-10-17 22:17:09 +00: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 Unpin test (#141427) 2024-02-01 18:53:23 +00: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