Advanced

Unit Testing and TDD in Python

Write reliable code! Learn to test your code with unittest, pytest, and Test-Driven Development.

  • 4.8/5.0
  • 2758 enrolled
  • Advanced
  • French
Course Description

Write reliable code! Learn to test your code with unittest, pytest, and Test-Driven Development.

Why test your code? (bugs, regressions)

--


Discover the unittest module

--


Simple test example

--

Red → Green → Refactor cycle

--


Write a test before writing the function

--


Workshop: code a function using TDD

--

Unit vs functional tests

--


Code coverage (concept)

--


Challenge: write 5 tests for an existing mini-module

--

Edson Bitjoka

Edson Bitjoka

Developer & Instructor

About the instructor

I make code bulletproof through testing. Learn to code with confidence and quality!

Student reviews
Zoé Petit
Zoé Petit

1 week ago

My code crashes much less since I started testing everything. A revolution!

Frequently asked questions

At first, yes—but it saves you huge debugging time later. A worthwhile investment!

Test-Driven Development: you write the test BEFORE the code. It forces you to think clearly and produces cleaner code.
Unit Testing and TDD in Python
Online course: 25 € / hour
In-person course: 35 € / hour

This course includes

  • Chapters 12
  • Duration 8h
  • Level Advanced
  • Language French
  • Unlimited access Yes
  • Certificate Yes