Running tests

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/AppTestsRunning 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:

  1. First, switch the scheme to ShoppingListServer-Package and select My Mac:
  2. Then, press Command +

Get Hands-On Full-Stack Development with Swift now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.