Python Testing 101
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
- Python 3.6+ installed in the PC
- Basic familarity with Python fundamentals
- Know how to install application software in Windows10
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
Writing unittest for a Real, Working Application
Thank you and see you in this course.
Who this course is for:
- Developers who want to start writing unit tests for their Python project
- QA engineers who want to learn Unit testing or White Box Testing
- Anyone who wants to learn testing and automation
- Anyone who wants to use Jenkins to execute Python tests
- Anyone who wants to learn about CI/CD with Python projects
- Anyone who wants to learn Pytest for running Python Tests
Kumar S, a seasoned Software Engineer/Architect has vast professional experience in development and automation in various domains. After graduating from one of the top universities in India, he has worked in various top companies with multi-site teams. He has experience in various roles Automation Engineer, Architect, Lead, Scrum Master and Sr. Engineering Manager leading, mentoring and guiding teams across different continents. Tutoring and mentoring has been his favorite past time activity since his college days - professionally as well as a volunteer. Currently he works as a Lead/Architect and Sr. Manager in a leading telecom company, and still continues with his passion of training and coaching on various tools & technologies during his free time.