Python Unit Testing: Advanced Python Testing Using the unittest Framework
Python
| Intermediate
- 10 videos | 1h 59s
- Includes Assessment
- Earns a Badge
This 10-video course explores advanced features of Python testing uses of the unit-test Framework, and will examine several ways to optimize tests. A labs-only course using Linux Shell, it explores the unit-test framework, the pytest, and the doctest, and how to use them to automate the testing of all the functions in Python applications. You will learn how to bundle common operations for multiple tests into a special function or fixture, which make test scripts easier to view and maintain. Next, you will learn to adjust the scope of fixture functions to execute before each individual test, or to execute just once for the entire test case. Learners will examine how to create and execute a collection of test cases called test suites. You will explore the PyCharm IDE (integrated development environment), which includes support for several different testing frameworks. Finally, you will explore how PyCharm IDE simplifies the creation of tests by generating boilerplate code for test scripts with just a few clicks.
WHAT YOU WILL LEARN
-
Discover the key concepts covered in this courseRecognize when a test script will benefit from the use of fixture functionsUse the setup and teardown functions to define common operations for tests in a scriptApply the setupclass and teardownclass functions in a python test scriptGroup test cases into a test suite and execute them using a test runner
-
Use the makesuite function to initialize a test suiteDownload, install and configure the pycharm ideCreate a script which uses the unittest framework by using the pycharm ideDefine a script testing out multiple functions in the source using the pycharm ideSummarize the key concepts covered in this course
IN THIS COURSE
-
2m 19s
-
7m 52sUpon completion of this video, you will be able to recognize when a test script will benefit from the use of fixture functions. FREE ACCESS
-
6m 7sLearn how to use the setUp and tearDown functions to define common operations for tests in a script. FREE ACCESS
-
5m 16sIn this video, you will learn how to apply the setUpClass and tearDownClass functions in a Python test script. FREE ACCESS
-
9m 21sFind out how to group test cases into a test suite and execute them using a test runner. FREE ACCESS
-
8m 35sIn this video, learn how to use the makeSuite function to create a test suite. FREE ACCESS
-
7m 7sDuring this video, you will learn how to download, install, and configure the PyCharm IDE. FREE ACCESS
-
7m 17sIn this video, find out how to create a script which uses the unittest framework by using the PyCharm IDE. FREE ACCESS
-
5m 21sIn this video, learn how to define a script testing multiple functions in the source using the PyCharm IDE. FREE ACCESS
-
1m 44s
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.