Python Unit Testing: Advanced Python Testing Using the unittest Framework

Python 3.0+    |    Intermediate
  • 10 Videos | 1h 4m 59s
  • Includes Assessment
  • Earns a Badge
Likes 28 Likes 28
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 course
    recognize when a test script will benefit from the use of fixture functions
    use the setUp and tearDown functions to define common operations for tests in a script
    apply the setUpClass and tearDownClass functions in a Python test script
    group test cases into a test suite and execute them using a test runner
  • use the makeSuite function to initialize a test suite
    download, install and configure the PyCharm IDE
    create a script which uses the unittest framework by using the PyCharm IDE
    define a script testing out multiple functions in the source using the PyCharm IDE
    summarize the key concepts covered in this course

IN THIS COURSE

  • Playable
    1. 
    Course Overview
    2m 19s
    UP NEXT
  • Playable
    2. 
    The Case for Fixtures
    7m 52s
  • Locked
    3. 
    setUp and tearDown Functions in a Test Script
    6m 7s
  • Locked
    4. 
    setUpClass & tearDownClass Functions in a Script
    5m 16s
  • Locked
    5. 
    Define and Run Test Suites
    9m 21s
  • Locked
    6. 
    Test Suites with makeSuite
    8m 35s
  • Locked
    7. 
    Install the PyCharm IDE
    7m 7s
  • Locked
    8. 
    Unit Tests with the unittest Framework Using PyCharm
    7m 17s
  • Locked
    9. 
    Unit Tests Testing Multiple Functions Using PyCharm
    5m 21s
  • Locked
    10. 
    Course Summary
    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 of this course, which can be shared on any social network or business platform

Digital badges are yours to keep, forever.

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE