A template for starting a new Vapor web application with testing in mind.
The recommended use for this template is to create a new Vapor app using the Vapor Toolbox. When creating a new web app with the toolbox, you can specify this template as an option, like so:
vapor new 'MyApp' --template=https://github.com/gtranchedone/vapor-testing-template
Alternatively, you can simply clone this project and start working on your app. This template is actually a fully working Vapor application, although quite basic in functionality.
Once you've created a new app, you can run tests using vapor test
or swift test
. Both commands are equivalent at this point. See the example tests included with the template to get started.
Visit the Vapor web framework's documentation for instructions on how to build a web application using this template.
Join the welcoming community of fellow Vapor developers in slack.
This package has been tested on macOS and Ubuntu.