© Christopher Pitt and Joe Mancuso 2020
C. Pitt, J. MancusoThe Definitive Guide to Masonitehttps://doi.org/10.1007/978-1-4842-5602-2_12

12. Testing

Christopher Pitt1  and Joe Mancuso2
(1)
Cape Town, South Africa
(2)
Holbrook, NY, USA
 

Unit testing is the art of taking small sections of your code (called units) and testing that functionality to ensure that it works properly. For example, you might take a small unit of code, like a controller method, and assert that it returns a view class.

Unit testing is really crucial for any application. There’s a lot of frameworks that make unit testing an afterthought, but with Masonite, we wanted to be sure that being able to test your application was absolutely crucial to us.

What Is Integration Testing?

Integration ...

Get The Definitive Guide to Masonite: Building Web Applications with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.