Summary

In this chapter, you learned how to write tests for server-side Swift applications using the XCTest framework. Sample tests are provided in Vapor and Kitura boilerplate projects, giving you a head start in adding unit tests to your project. In addition, you learned how to run unit tests in Xcode and use the code coverage feature in Xcode to improve your code's overall coverage. Next, you learned about the logging frameworks in Vapor and Kitura, and then HTTP traffic monitoring tools, such as Postman and curl. These unit tests and debugging techniques for server-side Swift projects are useful as you develop complex server-side Swift projects in the next chapters.