© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021
V. GagliardiDecoupled Django https://doi.org/10.1007/978-1-4842-7144-5_9

9. Testing in a Decoupled World

Valentino Gagliardi1  
(1)
Colle di Val D’Elsa, Italy
 
This chapter covers:
  • Functional testing for JavaScript-heavy interfaces

  • Unit testing for the Django REST Framework

In this chapter, we add tests to our application. In the first part, we cover functional testing for user interfaces with Cypress. In the second part, we move to unit testing in Django.

Note

This chapter assumes you are in the repo root decoupled-dj, with the Python virtual environment active.

Introduction to Functional Testing

More often than not, testing in software development is an afterthought, ...

Get Decoupled Django: Understand and Build Decoupled Django Architectures for JavaScript Front-ends 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.