Python Unit Testing: An Introduction to Python's unittest Framework
Python
| Intermediate
- 8 videos | 50m 3s
- Includes Assessment
- Earns a Badge
This 8-video course explores the unit-test framework in Python. To take this course, you should have experience in Python programming and the use of the Linux shell. The unit-test framework (also known as PyUnit) is modeled on JUnit and simplifies the automation of tests for Python applications. You will learn to use the unit-test framework to define tests for your application source code to ensure that it behaves in a specified manner. In this course, learners will write a sample test, and then expand the test scripts to include multiple tests. You will learn how to sequence the execution of tests in scripts, and how to filter out tests which do not require a specific run. Next, you will learn how to pass the output of test executions to identify the results of your tests, and how to diagnose test failures. You will learn how to run specific tests from among multiple tests in your scripts. Finally, this course demonstrates how to skip the execution of tests by using the skip decorator.
WHAT YOU WILL LEARN
-
Discover the key concepts covered in this courseInstall the latest version of python and write a test using the unittest frameworkDefine and execute multiple tests within a single test caseRecognize the effect of the test names on the execution of test methods
-
Pick individual tests from a script which need to be executedIdentify the various assert functions available in unittest and their specific use casesUse the different decorators available in unittest to conditionally and unconditionally skip specific testsSummarize the key concepts covered in this course
IN THIS COURSE
-
2m 24s
-
9m 25sLearn how to install the latest version of Python and write a test using the unittest framework. FREE ACCESS
-
7m 23sIn this video, you will define and execute multiple tests within a single test case. FREE ACCESS
-
5m 59sUpon completion of this video, you will be able to recognize the effect of the test names on the execution of test methods. FREE ACCESS
-
5m 22sIn this video, find out how to pick individual tests from a script which need to be executed. FREE ACCESS
-
8m 48sIn this video, you will learn how to identify the various assert functions available in unittest and their specific use cases. FREE ACCESS
-
9m 22sLearn how to use the different decorators available in unittest to skip specific tests conditionally and unconditionally. FREE ACCESS
-
1m 21s
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.
Digital badges are yours to keep, forever.