add Android instrumentation test (#11063)

* add Android instrumentation test

* add devicelab test

* add to manifest.yaml

* rename _smoke_test.dart to _smoketest.dart to prevent flutter test from picking it up

* volatile fields; style fixes

* use ConditionVariable; fix sh script
This commit is contained in:
Yegor
2017-07-10 17:20:49 -07:00
committed by GitHub
parent 7f0c98ab0b
commit 18d9b20ffb
8 changed files with 291 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
#!/bin/sh
set -e
if [ ! -f "./pubspec.yaml" ]; then
echo "ERROR: current directory must be the root of flutter_gallery package"
exit 1
fi
cd android
# Currently there's no non-hacky way to pass a device ID to gradlew, but it's
# OK as in the devicelab we have one device per host.
#
# See also: https://goo.gl/oe5aUW
./gradlew connectedAndroidTest -Ptarget=test/live_smoketest.dart