Files
gerrit/polygerrit-ui/app/test/functional/infra/run.sh
Viktar Donich 7cbe1e493e Functional test suite starter
Contains test runner Docker file and a sample smoke test. Smoke test
build PolyGerrit app, serves it locally and expects page title to be
updated to the default value.

Change-Id: I8ab2ca8a97830eefa1c697c2e51be82cbc1657c7
2018-02-13 20:12:30 -08:00

15 lines
310 B
Bash
Executable File

#!/bin/sh
echo Starting local server..
cp /app/polygerrit_ui.zip .
unzip -q polygerrit_ui.zip
nohup http-server polygerrit_ui > /tmp/http-server.log 2>&1 &
echo Starting Webdriver..
nohup /opt/bin/entry_point.sh > /tmp/webdriver.log 2>&1 &
# Wait for servers to start
sleep 5
cp $@ .
jasmine $(basename $@)