6. Final
Now you can do professional testing of your projects at different levels: unit tests with Given-When-Then, the TDD flow, doubles to isolate the outside world and E2E tests in the browser.
You've seen everything illustrated with Python and pytest, but remember: the patterns are universal. Change the syntax and the tools according to your ecosystem, the philosophy doesn't move.
If you want to go deeper, I have two articles that expand on this course:
- Testing techniques and tools in Python with pytest: advanced fixtures, data generation with
fakerandhypothesis, HTTP mocking, snapshot testing and more. - Learn how to structure a test: the Given-When-Then pattern in depth and how to document the cases before writing code.
Each tool has its particularities, advantages and disadvantages. But they all share the same philosophy. Now it's your turn to apply it.
This work is under a Attribution-NonCommercial-NoDerivatives 4.0 International license.
Building SPAs with Django and HTML Over the Wire: Learn to build real-time single page applications with Python
The HTML over WebSockets approach simplifies single-page application (SPA) development and lets you bypass learning a JavaScript rendering framework such as React, Vue, or Angular, moving the logic to Python. This web application development book provides you with all the Django tools you need to simplify your developments with real-time results.
Buy the bookHelp me keep writing
Every coffee gives me a push toward the next article.
Sure, it's on me!
Comments
There are no comments yet.