Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 1. Using Unittest To Develop Basic Tests

Chapter 1. Using Unittest To Develop Basic Tests

In this chapter, we will cover:

  • Asserting the basics

  • Setting up and tearing down a test harness

  • Running test cases from the command line

  • Running a subset of test case methods

  • Chaining together a suite of tests

  • Defining test suites inside the test case

  • Retooling old test code to run inside unittest

  • Breaking down obscure tests into simple ones

  • Testing the edges

  • Testing corner cases by iteration


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial