Vapor tests can be run directly from the command line or from Xcode. You can also run a specific test directly from Xcode if you want to debug and fix a specific issue instead of running an entire test suite, which could take a long time for large projects.
Before we get started with running our tests inside Xcode, we will need to delete the PostControllerTests.swift file inside Tests/AppTests. Running tests in Xcode is a two-step process, and there are multiple ways to run the tests. The first way involves a two-step process:
- First, switch the scheme to ShoppingListServer-Package and select My Mac:
- Then, press Command +