I have started to experiment with Xcode UI testing and with in my first few tests, I am observing that the app state is being retained between tests.
How I kill the app completely?
http://masilotti.com/xctest-documentation/Classes/XCUIApplication.html#//api/name/terminate
command only seems to put the app in background/suspend it
The XCUIApplication method terminate
does terminate the running instance of the app, and does not only send it to the background in iOS
https://developer.apple.com/documentation/xctest/xcuiapplication/1500637-terminate