-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
executable file
·50 lines (25 loc) · 942 Bytes
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
# Scriptheaders are for noobs :)
export $(cat .env | xargs)
echo "Starting Playwright tests..."
cd playwright
. venv/bin/activate
PLAYWRIGHT_URL="https:$(browserstack-sdk pytest -s ./tests/test.py | grep "View build on BrowserStack dashboard:" | rev | cut -d ":" -f 1 | rev)"
cd ..
echo "Finished Playwright tests..."
echo "Starting Selenium tests..."
cd selenium
. venv/bin/activate
SELENIUM_URL="https:$(browserstack-sdk python ./tests/test.py | grep "View build on BrowserStack dashboard:" | rev | cut -d ":" -f 1 | rev)"
cd ..
echo "Finished Selenium tests..."
echo "Starting Puppeteer tests..."
cd puppeteer
node test.spec.js > /dev/null
echo "Finished Puppeteer tests..."
echo -e "\n\n\n"
echo "#####################"
echo "Playwright Report: $PLAYWRIGHT_URL"
echo "Selenium Report: $SELENIUM_URL"
echo "Puppeteer has no report. View test results in the web console."
echo "#####################"