File: run_test.sh

package info (click to toggle)
python3.14 3.14.3-4
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 167,092 kB
  • sloc: python: 759,022; ansic: 718,747; xml: 31,250; sh: 5,984; cpp: 4,093; makefile: 2,011; objc: 787; lisp: 502; javascript: 136; asm: 75; csh: 12
file content (11 lines) | stat: -rwxr-xr-x 391 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
set -euo pipefail
cd "$(dirname "$0")"
rm -f test_log.txt
echo "Installing node packages" | tee test_log.txt
npm ci >> test_log.txt 2>&1
echo "Installing playwright browsers" | tee test_log.txt
npx playwright install 2>> test_log.txt
export PORT=$(npx get-port-cli)
echo "Running tests with webserver on port $PORT" | tee test_log.txt
CI=1 npx playwright test | tee test_log.txt