Member-only story
Adding Test files to XCode project iOS
2 min readOct 3, 2020
When creating the project
You should check “Include UI Tests” in the project creation dialog.
After creating the project
If you missed checking UI target while creating project, you could always add test target later. Setps:
While project open go to File -> New -> Target FindiOS UI Testing Bundle
Disable animations during UI Testing
In a test you can disable animations by adding in setUp:
app.launchEnvironment = [“animations”: “0”]
Where app is instance of XCUIApplication.