@@ -112,14 +112,24 @@ func runXCUIWithBundleIdsXcode11Ctx(
112
112
func startTestRunner11 (pControl * instruments.ProcessControl , xctestConfigPath string , bundleID string ,
113
113
sessionIdentifier string , testBundlePath string , wdaargs []string , wdaenv []string ,
114
114
) (uint64 , error ) {
115
- args := []interface {}{}
115
+ args := []interface {}{
116
+ "-NSTreatUnknownArgumentsAsOpen" , "NO" , "-ApplePersistenceIgnoreState" , "YES" ,
117
+ }
116
118
for _ , arg := range wdaargs {
117
119
args = append (args , arg )
118
120
}
119
121
env := map [string ]interface {}{
120
- "XCTestBundlePath" : testBundlePath ,
121
- "XCTestConfigurationFilePath" : xctestConfigPath ,
122
- "XCTestSessionIdentifier" : sessionIdentifier ,
122
+ "CA_ASSERT_MAIN_THREAD_TRANSACTIONS" : "0" ,
123
+ "CA_DEBUG_TRANSACTIONS" : "0" ,
124
+ "DYLD_INSERT_LIBRARIES" : "/Developer/usr/lib/libMainThreadChecker.dylib" ,
125
+
126
+ "MTC_CRASH_ON_REPORT" : "1" ,
127
+ "NSUnbufferedIO" : "YES" ,
128
+ "OS_ACTIVITY_DT_MODE" : "YES" ,
129
+ "SQLITE_ENABLE_THREAD_ASSERTIONS" : "1" ,
130
+ "XCTestBundlePath" : testBundlePath ,
131
+ "XCTestConfigurationFilePath" : xctestConfigPath ,
132
+ "XCTestSessionIdentifier" : sessionIdentifier ,
123
133
}
124
134
125
135
for _ , entrystring := range wdaenv {
0 commit comments