Introduction
Welcome to an introduction to how to integrate testing in ios projects. The framework I chose for my project is XCtest which is an automation tool provided by Apple. Use the XCTest framework to write unit tests for your Xcode projects that integrate seamlessly with Xcode's testing. documentation
Setup
Please follow the instruction to set up the XCTest for your Xcode project.
To run the tests in swift
$ swift test
Shortcuts
These shortcuts are essential when writing unit tests in Xcode.
- Command + U to run all tests.
- Command + Option + Control + G to run latest test.
Errors encountered
Fixed errors
if(input.isEmpty){
print("Error. Please enter input folder or add suffix to file name")
return
}
Outcome
Learning from testing is to cover all arguments or other ways possibilities of having errors. While testing helps to come up with all scenarios that can cover all errors. Commits: commits
Top comments (0)