mirror of https://github.com/vapor/docs.git
add note
This commit is contained in:
parent
c75e506629
commit
784295c4d2
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue