You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mac.sh
+9-16Lines changed: 9 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -26,24 +26,15 @@ APP_URL=""
26
26
APP_PLATFORM=""# ios | android | all
27
27
28
28
29
-
# ===== Error Patterns =====
30
-
WEB_SETUP_ERRORS=("")
31
-
WEB_LOCAL_ERRORS=("")
32
-
33
-
MOBILE_SETUP_ERRORS=("")
34
-
MOBILE_LOCAL_ERRORS=("")
35
-
36
29
# ===== Example Platform Templates (replace with your full lists if available) =====
37
30
WEB_PLATFORM_TEMPLATES=(
38
31
"Windows|10|Chrome"
39
32
"Windows|10|Firefox"
40
33
"Windows|11|Edge"
41
34
"Windows|11|Chrome"
42
35
"Windows|8|Chrome"
43
-
#"OS X|Monterey|Safari"
44
36
"OS X|Monterey|Chrome"
45
37
"OS X|Ventura|Chrome"
46
-
#"OS X|Big Sur|Safari"
47
38
"OS X|Catalina|Firefox"
48
39
)
49
40
@@ -193,7 +184,6 @@ APP_URL=""
193
184
APP_PLATFORM=""# ios | android | all
194
185
195
186
196
-
197
187
# ===== Log files (runtime only; created on first write) =====
198
188
# ===== Log files (per-run) =====
199
189
LOG_DIR="$WORKSPACE_DIR/$PROJECT_FOLDER/logs"
@@ -826,7 +816,7 @@ setup_web_nodejs() {
826
816
local_flag=true
827
817
fi
828
818
829
-
Loglocal flag status
819
+
#log_msg_to local flag status
830
820
if [ "$local_flag"="true" ];then
831
821
log_msg_to "✅ BrowserStack Local is ENABLED for this run.""$PRE_RUN_LOG_FILE"
832
822
else
@@ -839,7 +829,7 @@ setup_web_nodejs() {
839
829
export BROWSERSTACK_LOCAL=$local_flag
840
830
841
831
# === 8️⃣ Run Tests ===
842
-
log_msg_to "🚀 Running 'npm run test'""$GLOBAL""$WEB_LOG_FILE"
832
+
log_msg_to "🚀 Running 'npm run test'. This could take a few minutes. Follow the Automaton build here: https://automation.browserstack.com/""$WEB_LOG_FILE"
843
833
npm run test>>"$WEB_LOG_FILE"2>&1||true
844
834
845
835
# === 9️⃣ Wrap Up ===
@@ -1026,13 +1016,13 @@ PYEOF
1026
1016
1027
1017
# Log local flag status
1028
1018
if [ "$local_flag"="true" ];then
1029
-
log_msg_to "⚠️ BrowserStack Local is ENABLED for this run.""$PRE_RUN_LOG_FILE"
1019
+
log_msg_to "⚠️ BrowserStack Local is ENABLED for this run."
1030
1020
else
1031
-
log_msg_to "⚠️ BrowserStack Local is DISABLED for this run.""$PRE_RUN_LOG_FILE"
1021
+
log_msg_to "⚠️ BrowserStack Local is DISABLED for this run."
1032
1022
fi
1033
1023
1034
1024
# Run pytest with BrowserStack SDK from the chosen platform directory
0 commit comments