zalando / SwiftMonkey

A framework for doing randomised UI testing of iOS apps
MIT License
1.95k stars 175 forks source link

Fixing issue where memory would bloat in UITest runner when running o… #70

Closed wcrestfield closed 4 years ago

wcrestfield commented 5 years ago

…n device. It seemed to have been caused by XCUIApplication() getting called multiple times per execution of an action. Its now only retained once per action. Resolves #23

wojciechczerski commented 4 years ago

Hey there, does this apply to Xcode 10.2 only? I've tested on a device (iOS 13, Xcode 11) using public XCTest actions (see #81) and the memory seems to be stable.

wojciechczerski commented 4 years ago

Ok, I take it back. I left tests running for some time and when I came back, there was about 8GB of memory used by the UI tests target 😱

With your changes the memory stays on a very low level. Thank for the support! 🎉

wojciechczerski commented 4 years ago

👍

hmttrp commented 4 years ago

👍