Abekus — AI learning and job matching platform logo

Test-Driven Development

  • 45 lessons
  • About 5 hours
  • Self-paced
0%Complete
Guided Mode

Start with lesson 1

45 lessons. The first one is free, no signup needed.

🗺️ Your learning path
A First Cycle
Test First vs Test Last

What you'll learn

  • Run a full red-green-refactor cycle in pytest and read a failure report.
  • Keep a test list and choose between fake it, triangulation and obvious implementation for the next step.
  • Use fixtures with yield teardown, scopes, conftest.py and tmp_path, and parametrize, to keep tests short.
  • Replace slow or external dependencies with stubs, fakes and mocks, patching where the name is looked up.
  • Grow a design outside-in or inside-out, and add characterization tests before changing legacy code.
  • Judge when TDD pays off and when test-first is not worth it.

About this course

Test-driven development is easy to describe and hard to keep up: the tests feel like extra work, the steps grow too big, and a refactor made at the wrong moment breaks everything. The practice works when the cycle is small and disciplined, with one failing test, the simplest code that passes, then a tidy-up while every test is green. This online test-driven development course on Abekus teaches that cycle in Python with pytest, starting from a single red-green-refactor loop on a GST-inclusive price calculator and building up to test lists, fixtures and parametrize, test doubles, outside-in and inside-out design and legacy code, in short reading-card lessons each followed by an MCQ quiz.

Jobs that ask for Test-Driven Development

56 live openings list Test-Driven Development as a required skill.

See all Test-Driven Development jobs ›

Frequently asked questions