-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_tests.sh
executable file
·35 lines (23 loc) · 950 Bytes
/
run_tests.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
#!/usr/bin/env bash
function file_exists() {
FILE=$1
if [ ! -f "$FILE" ]; then
echo "$FILE not found."
exit 1
else
echo "$FILE found."
fi
}
rm -rf ./test/chromium/output || true
rm -rf ./test/firefox/output || true
rm -rf ./test/webkit/output || true
rm -rf ./test/video-recording/output || true
docker run --rm -v $(pwd)/test/chromium:/tests codecept-multimocha-playwright:latest
docker run --rm -v $(pwd)/test/firefox:/tests codecept-multimocha-playwright:latest
docker run --rm -v $(pwd)/test/webkit:/tests codecept-multimocha-playwright:latest
docker run --rm -v $(pwd)/test/video-recording:/tests codecept-multimocha-playwright:latest
file_exists ./test/chromium/output/Chromium_Whatsmybrowser.png
file_exists ./test/firefox/output/Firefox_Whatsmybrowser.png
file_exists ./test/webkit/output/Webkit_Whatsmybrowser.png
file_exists ./test/video-recording/output/videos/*.webm
echo "Tests completed successfully..."