For testing purposes, I want to bypass the login screen of my application. I can do that simply by commenting out the code that pushes the view controller when running tests. However, that's not ideal. I came up with a better way of setting a env var in my scheme and then doing:
if ([NSProcessInfo processInfo].environment[@"TEST"]) {
// Running EarlGrey test.
}
I'd like to know if there's any better way to detect if I am running EarlGrey tests?