Skip to content

Commit fad04de

Browse files
Test 34 of CI
1 parent f5d060c commit fad04de

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

specs/utils/ios-simulator.mjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,16 @@ export async function setLanguage(simulator, language, locale) {
141141
console.log("✅ Simulator language set.");
142142
}
143143

144+
/**
145+
* Sets the log level to verbose for a simulator.
146+
* @param {Simulator} simulator
147+
*/
148+
export async function setLogVerbose(simulator) {
149+
console.log(`🛠️ Setting log level to verbose for simulator: ${simulator.udid}`);
150+
await execAsync(`xcrun simctl logverbose ${simulator.udid} enable`);
151+
console.log("✅ Simulator log level set to logverbose:enable.");
152+
}
153+
144154
/**
145155
* Runs the UI tests for a given scheme on a simulator.
146156
* @param {Simulator} simulator The simulator object.
@@ -258,6 +268,7 @@ export function streamLogs(simulator) {
258268
// This command streams logs from the simulator, filtering for messages from our app,
259269
// the test runner, and the home screen (SpringBoard) to see notifications.
260270
const logProcess = spawn("xcrun", [
271+
"--log",
261272
"simctl",
262273
"spawn",
263274
simulator.udid,

0 commit comments

Comments
 (0)