Unit Testing Your Application
Last updated
Last updated
In the previous lessons, we learned how to use to simplify the controllers implementation. Now, we need to test our implementation so we can ensure it is handling requests correctly.
Blueprint uses and to facilitate unit testing. The benefit to Blueprint approach is it allows you to run unit tests without needing a front-end, such as Postman, to exercise the Blueprint application. You can also use to implement the test oracle for each unit test.
Using our current example, here is a simple unit test to check the GET /api/rentals
.