This commit is contained in:
Jimmy School 2017-01-11 16:11:20 -06:00
parent c75e506629
commit 784295c4d2
1 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,8 @@ currentMenu: testing-modules
Testing a Vapor app gets tricky, and requires some maneuvering of your app targets.
> [WARNING] Technically this is only necessary if you plan to run your tests on Linux. You can keep your tests in the same module if you want to only run your tests from the command line using `vapor test`
## **Step 1:** Update Package.swift
To start, you need to split up your Vapor project into a target called `App`, and a target called `AppLogic`. The App module will only include a `main.swift`, and your `AppLogic` will contain the actual logic for the app.