When you need to interact with an Xcode project from the terminal, xcodebuild is the first place to look in. Running the tests from the command line is a necessary step for Continuous Integration and can come in handy when working solo, too.įor example, you might want to run a script to automate publishing a build to TestFlight and run the unit and UI test suites as a pre-check. This post shows how to run Xcode unit tests and UI tests from your terminal and how to format the output for readability with xcbeautify and xcpretty.
0 Comments
Leave a Reply. |