intermediate

Testing: Proving Your Code Works

Automated tests are what let a team change code without fear. Learn the test pyramid, how to write clear unit tests (arrange, act, assert), test-driven development, test doubles, and how to choose edge cases. Then practise by making a function pass a suite of tests, exactly as TDD does.

65 min

Testing: Proving Your Code Works

Automated tests are what let a team change code without fear. Learn the test pyramid, how to write clear unit tests (arrange, act, assert), test-driven development, test doubles, and how to choose edge cases. Then practise by making a function pass a suite of tests, exactly as TDD does.

In this lesson:

  • testing
  • unit-tests
  • tdd
  • pytest
  • test-pyramid
  • mocking
  • regression

🔒 This lesson is part of a paid plan

This lesson is part of the Pro plan. Upgrade to unlock the full lesson, the labs and the exam.

Upgrade Now

Official References

This lesson is part of a paid plan

Upgrade to Pro to unlock this course, its labs and its exam.

View Pricing Plans