Debian Codegraph @

Platforms/emscripten/browser_test/run_test.sh

raw
1 #!/bin/bash
2 set -euo pipefail
3 cd "$(dirname "$0")"
4 rm -f test_log.txt
5 echo "Installing node packages" | tee test_log.txt
6 npm ci >> test_log.txt 2>&1
7 echo "Installing playwright browsers" | tee test_log.txt
8 npx playwright install 2>> test_log.txt
9 export PORT=$(npx get-port-cli)
10 echo "Running tests with webserver on port $PORT" | tee test_log.txt
11 CI=1 npx playwright test | tee test_log.txt