When you enroll through our links, we may earn a small commission—at no extra cost to you. This helps keep our platform free and inspires us to add more value.

Udemy logo

Python Testing 101

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

     
  • 4.4
  •  |
  • Reviews ( 18 )
₹519

This Course Includes

  • iconudemy
  • icon4.4 (18 reviews )
  • icon4h 24m
  • iconenglish
  • iconOnline - Self Paced
  • iconprofessional certificate
  • iconUdemy

About Python Testing 101

Welcome to Python Testing 101 - Unit Testing Python code with Python Unittest framework. Unit testing is a software testing methodology wherein the individual components or parts of the program, called units, are tested independently with all the required dependencies. Unit testing is mostly done by developers, who write the programs for the units. In most of the software projects, unit testing is part of a formal process of development with proper schedule and or efforts allocated for writing unit tests. The course lets you get your hands dirty with the basic building blocks in testing, which are unit tests. Here you will be taken through what a unit test is, the basic syntax, and examples of a simple unit test. Then, you will learn about the methods available to use in unit testing and the various tools available to help in running and debugging your tests. You also will learn about use of mocks and patching, which helps you to isolate the code you are interested in testing (your “units”), and simulate responses from other parts of the system or libraries. This course will help you master the fundamentals of Unit testing of Python project. 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.

What You Will 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.