
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
15 lines
310 B
Bash
Executable File
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 $@)
|