Skip to content

Commit

Permalink
smoketest: do full default run against our basic html page. (#534)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish authored Jul 27, 2016
1 parent cc3cca4 commit 3e632f9
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions lighthouse-cli/scripts/run-smoke-tests.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
#!/usr/bin/env bash

cd lighthouse-cli/test/fixtures && python -m SimpleHTTPServer 9999 &
cd lighthouse-cli/test/fixtures && python -m SimpleHTTPServer 10200 &

NODE=$([ $(node -v | grep -E "v4") ] && echo "node --harmony" || echo "node")
config="$PWD/lighthouse-cli/test/fixtures/smoketest-config.json"
flags="--config-path=$config"
#config="$PWD/lighthouse-cli/test/fixtures/smoketest-config.json"
#flags="--config-path=$config"

offline200result="URL responds with a 200 when offline"

$NODE lighthouse-cli $flags http://localhost:9999/online-only.html > results
# run default lighthouse run against a boring basic page
$NODE lighthouse-cli --quiet http://localhost:10200/online-only.html > results

# test that we have results
if ! grep -q "$offline200result" results; then
Expand All @@ -34,10 +35,10 @@ fi
#
# # test mojibrush which should pass the offline test
# $NODE lighthouse-cli $flags https://www.moji-brush.com > results
#
#
# if ! grep -q "$offline200result: true" results; then
# echo "Fail! offline ready site did not work while offline"
# cat results
# exit 1
# fi
#
#

0 comments on commit 3e632f9

Please sign in to comment.