Skip to content

Commit 6ba820c

Browse files
committed
test(ios): skip app main in scripted runner
1 parent 1668c88 commit 6ba820c

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

scripts/run-tests-ios.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,6 +1248,7 @@ async function main() {
12481248
}
12491249

12501250
const launchArgs = emitJunitLogs ? ["-logjunit"] : [];
1251+
launchArgs.push("-skip-application-main");
12511252
if (verboseSpecLogs) {
12521253
launchArgs.push("-verbose-specs");
12531254
}

test/runtime/runner/app/tests/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ function hasProcessArg(expected) {
7272

7373
var logjunit = hasProcessArg("-logjunit");
7474
var verboseSpecLogs = hasProcessArg("-verbose-specs");
75+
var skipApplicationMain = hasProcessArg("-skip-application-main");
7576

7677
function getProcessArgValue(flag) {
7778
var args = getProcessArgs();
@@ -265,7 +266,7 @@ if (shouldRun("./shared/index")) {
265266

266267
execute();
267268

268-
if (typeof UIApplicationMain === "function") {
269+
if (typeof UIApplicationMain === "function" && !skipApplicationMain) {
269270
UIApplicationMain(0, null, null, null);
270271
} else if (typeof NSApplicationMain === "function" && !logjunit) {
271272
NSApplicationMain(0, null);

0 commit comments

Comments
 (0)