GuideIntermediate

Testing Backend Applications Guide

Learn backend testing end to end: pytest fundamentals, fixtures, mocking with unittest.mock and pytest-mock, integration testing with test databases and factories, E2E testing with the FastAPI TestClient, coverage with pytest-cov, the TDD workflow, and CI with GitHub Actions. Build a production-grade test suite with 80%+ coverage.

48
lessons
6
modules
English · Spanish
available in
Yes
certificate
Free
access
NIEVA

Outcomes

What you'll be able to do

  • Pytest Fundamentals: Fixtures, parametrize, markers, conftest.py, plugins
  • Unit Testing: Functions, classes, dependency isolation, advanced assertions
  • Mocking: unittest.mock, pytest-mock, patching, side effects, spec
  • Integration Testing: Test databases, SQLAlchemy fixtures, factories with factory_boy
  • E2E Testing: FastAPI TestClient, full workflows, auth testing
  • Coverage: pytest-cov, coverage reports, thresholds, branch coverage
  • TDD: Red → Green → Refactor, test-first development
  • CI: GitHub Actions, test pipeline, automated coverage checks

Before you start

What you need to bring

Requirements and materials

  • FastAPI Fundamentals and Advanced completed (#6-#7)
  • PostgreSQL & SQLAlchemy Guide completed (#8)
  • Authentication & Authorization Guide completed (#9)
  • A working API with endpoints, models and auth

Content

The syllabus, module by module

Open any of them to see its lessons.

Where it fits

This guide is part of something bigger

It's studied inside these programs, with support and dates.

Common questions

What people usually ask

Start whenever you like

Reviews

What students say

These reviews are from enrolled students who completed at least 50% of the course. We moderate reviews only on content grounds (spam, offensive language, personal data), never for being critical or negative.

No approved reviews yet.

Be the first to share your experience!