Revision b8b30009cf8f95e00d9487dd73d264c8837c23fb authored by Casey Litton on 28 February 2020, 01:27:31 UTC, committed by GitHub on 28 February 2020, 01:27:31 UTC
ENCD-5132-update-deployment-amis (#3174)
circle-tests.sh
#!/bin/bash
## Helper to run tests locally using same commands as circle ci config
# See: encoded/.circleci/config.yml
#
# Use Cases: No argument defaults to not bdd tests which are indexing and not indexing
# $ circle-tests.sh bdd
# $ circle-tests.sh not-bdd-indexing
# $ circle-tests.sh not-bdd-non-indexing
# $ circle-tests.sh npm
# $ circle-tests.sh
##
if [ "$1" == "bdd" ]; then
bin/test -v -v --timeout=300 -m "bdd" --tb=short --splinter-implicit-wait 10 --splinter-webdriver chrome --splinter-socket-timeout 300 --chrome-options "--headless --disable-gpu --no-sandbox --disable-dev-shm-usage --disable-extensions --whitelisted-ips --window-size=1920,1080"
exit
fi
if [ "$1" == "not-bdd-indexing" ]; then
bin/test -s -vv -m "not bdd" -k test_indexing
exit
fi
if [ "$1" == "not-bdd-non-indexing" ]; then
bin/test -s -vv -m "not bdd" -k 'not test_indexing'
exit
fi
if [ "$1" == "npm" ]; then
npm test
exit
fi
if [ -z "$1" ]; then
bin/test -v -v --timeout=400 -m "not bdd"
exit
fi
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...