webextension-polyfill/test/run-browsers-smoketests.sh

21 lines
559 B
Bash
Raw Normal View History

#!/bin/bash
set -eo pipefail
echo ""
echo "Test webextension-polyfill on real browsers"
echo "==========================================="
export PATH=$PATH:./node_modules/.bin/
## HEADLESS=1 Enable the headless mode (currently used only on Firefox
## because Chrome doesn't currently support the extensions in headless mode)
export HEADLESS=1
echo ""
echo "Run smoketests on Chrome"
TEST_BROWSER_TYPE=chrome npm run test-integration | tap-nirvana
echo ""
echo "Run smoketests on Firefox"
TEST_BROWSER_TYPE=firefox npm run test-integration | tap-nirvana