Python Testing 101

UnitTesting Python with Unittest Framework||White Box Testing||Mocks & Parameterized Tests||Pytest, Jenkins & More…

Hi! Welcome to Python Testing 101 – Unit Testing Python code with unittest framework.

What you’ll learn

  • Unit testing with Python ‘unittest’ framework.
  • Fundamentals of Unit Testing or White box testing in Python.
  • Writing and executing Testcases in Python.
  • Execute Unit Tests in CI/CD server Jenkins.
  • Using Mock or Test Double in Python Unittesting.
  • Test execution and Reporting with Pytest framework with Jenkins.
  • Parameterized Testing with Parameterized Package.
  • Code collaboration and run tests from Code repo like GitHub.
  • Using Git for code version control.

Course Content

  • Introduction –> 3 lectures • 8min.
  • Getting The Basics Right –> 3 lectures • 38min.
  • Mock/Test Double and Assert Options –> 3 lectures • 34min.
  • Parameterized Tests –> 2 lectures • 17min.
  • Test Execution & Reporting (Pytest, Jenkins) –> 3 lectures • 21min.
  • Unittesting a Real Application –> 5 lectures • 43min.
  • Continuous integration(CI) And Testing Python –> 8 lectures • 1hr 26min.
  • Thank You –> 2 lectures • 1min.
  • Appendices –> 2 lectures • 16min.

Python Testing 101

Requirements

Hi! Welcome to Python Testing 101 – Unit Testing Python code with unittest framework.

This course will help you master the fundamentals of Unit testing Python code. It teaches you various techniques for writing  unit tests in Python and how to execute them efficiently, and find the bugs before your users do!

We will be using Python unittest framework which comes with Python standard library and it assumes that you have minimal prior experience with Python coding.

You’ll learn how to assert parts of your tests, how to discover the tests, and make tests easier to read and manage. Throughout the course you will see lots of unit test code examples in Python.

Some of the interesting topics covered in the course are:

  • Create Project in Pycharm with Virtual Env
  • Unittest Fixtures & Test Discovery
  • Using Mock and Test Doubles
  • Pytest as Test Runner and generating nice reports
  • Jenkins to run and share the test reports
  • Parameterized Tests
  • Writing unittest for a Real, Working Application

Thank you and see you in this course.

Get Tutorial