Files
grafana/e2e/run-suite
T

33 lines
727 B
Bash
Raw Normal View History

#!/bin/bash
2020-07-10 16:09:21 +02:00
set -xeo pipefail
. e2e/variables
2020-07-10 16:09:21 +02:00
HOST=${HOST:-$DEFAULT_HOST}
PORT=${PORT:-$DEFAULT_PORT}
echo -e "Starting Cypress scenarios"
CMD="start"
PARAMS=""
SLOWMO=0
2020-07-10 16:09:21 +02:00
URL=${BASE_URL:-"http://$HOST:$PORT"}
2020-05-12 12:48:26 +02:00
SUITE=${SUITE:-$DEFAULT_SUITE}
if [ "$1" == "debug" ]; then
echo -e "Debug mode"
SLOWMO=1
PARAMS="--headed --no-exit"
fi
if [ "$1" == "dev" ]; then
echo "Dev mode"
CMD="open"
fi
2020-03-13 18:48:38 +01:00
cd packages/grafana-e2e
2020-07-10 16:09:21 +02:00
yarn $CMD --env BASE_URL=$URL,SLOWMO=$SLOWMO \
2020-05-12 12:48:26 +02:00
--config integrationFolder=../../e2e/$SUITE/specs,screenshotsFolder=../../e2e/$SUITE/screenshots,videosFolder=../../e2e/$SUITE/videos,fileServerFolder=./cypress,viewportWidth=1920,viewportHeight=1080,trashAssetsBeforeRuns=false \
$PARAMS