Python Forum

Full Version: Unit testing and Test Driven Development with Pytest
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I wrote a series of articles about unit testing and test driven development explaining it for the beginner programmers on my blog.

See if you can benefit from it as well.

Subjects in the series:
  • What is unit testing and why to use it
  • How to isolate objects properly using Mocks
  • How to test only through the use of the interface and not bind yourself to the current implementation
  • How to avoid writing redundant tests
  • What is test driven development and why to use it
  • How are different types of messages tested
  • How to test custom exceptions

Half the code examples are in classic unit testing approach and the other half in test driven development way.

The first article is here:

http://tomasz-kluczkowski.com/unit-testi...se-part-1/

Take care,

Tomasz