blob: dabf9a8630e609995a9612143d9902ebbf013bb2 [file] [log] [blame]
# Copyright 2013 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
if pgrep -lf chromedriver > /dev/null; then
echo "chromedriver is running."
flutter pub get
echo "(Re)generating mocks."
flutter pub run build_runner build --delete-conflicting-outputs
if [ $# -eq 0 ]; then
echo "No target specified, running all tests..."
find integration_test/ -iname *_test.dart | xargs -n1 -i -t flutter drive -d web-server --web-port=7357 --browser-name=chrome --driver=test_driver/integration_test.dart --target='{}'
echo "Running test target: $1..."
set -x
flutter drive -d web-server --web-port=7357 --browser-name=chrome --driver=test_driver/integration_test.dart --target=$1
echo "chromedriver is not running."
echo "Please, check the for instructions on how to use"