diff --git a/ios/testmanagerd/xcuitestrunner_11.go b/ios/testmanagerd/xcuitestrunner_11.go index 44ecc8e8..7f7c97ee 100644 --- a/ios/testmanagerd/xcuitestrunner_11.go +++ b/ios/testmanagerd/xcuitestrunner_11.go @@ -99,14 +99,24 @@ func RunXCUIWithBundleIds11Ctx( func startTestRunner11(pControl *instruments.ProcessControl, xctestConfigPath string, bundleID string, sessionIdentifier string, testBundlePath string, wdaargs []string, wdaenv []string, ) (uint64, error) { - args := []interface{}{} + args := []interface{}{ + "-NSTreatUnknownArgumentsAsOpen", "NO", "-ApplePersistenceIgnoreState", "YES", + } for _, arg := range wdaargs { args = append(args, arg) } env := map[string]interface{}{ - "XCTestBundlePath": testBundlePath, - "XCTestConfigurationFilePath": xctestConfigPath, - "XCTestSessionIdentifier": sessionIdentifier, + "CA_ASSERT_MAIN_THREAD_TRANSACTIONS": "0", + "CA_DEBUG_TRANSACTIONS": "0", + "DYLD_INSERT_LIBRARIES": "/Developer/usr/lib/libMainThreadChecker.dylib", + + "MTC_CRASH_ON_REPORT": "1", + "NSUnbufferedIO": "YES", + "OS_ACTIVITY_DT_MODE": "YES", + "SQLITE_ENABLE_THREAD_ASSERTIONS": "1", + "XCTestBundlePath": testBundlePath, + "XCTestConfigurationFilePath": xctestConfigPath, + "XCTestSessionIdentifier": sessionIdentifier, } for _, entrystring := range wdaenv { @@ -114,7 +124,7 @@ func startTestRunner11(pControl *instruments.ProcessControl, xctestConfigPath st key := entry[0] value := entry[1] env[key] = value - log.Debugf("adding extra env %s=%s", key, value) + log.Infof("adding extra env %s=%s", key, value) } opts := map[string]interface{}{