In this video we write tests for the project creation routes.
Steps:
1. Create a new test class called ProjectAddTest.kt
2. Add tests for displaying the form to create projects
3. Add tests for the possible error cases when trying to submit the STORE request
4. Add tests validating that a project and activity are created correctly when there is a valid STORE request
Resources:
Alpas CSRF Protection: https://alpas.dev/docs/csrf-protection#main
Source Code:
https://github.com/alpascasts/fireplace/releases/tag/v0.19.0
Download
0 formats
No download links available.
Testing: Writing Tests for Adding Projects | NatokHD