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

Part VII: Writing Tests

Part VII: Writing Tests

Writing tests for every bit of functionality is of utmost importance in Zope 3. Testing can be done in many ways, from Java-like unit tests to Pythonic doc testing.

Chapter 40: Writing Basic Unit Tests

This chapter shows how to develop basic unit tests for your code and explains in detail how various pieces of functionality can be tested.

Chapter 41: Doc Tests: Example-Driven Unit Tests

Sometimes regular unit tests are not instructive enough to someone reviewing the code. This chapter shows how example-driven doc tests can become useful in these cases.

Chapter 42: Writing Functional Tests

Unit tests are great for testing isolated components, but they are impractical for testing entire sections of a system. For these type of tests, you use a functional testing framework, which is introduced in this chapter in some detail.

Chapter 43: Creating Functional Doc Tests

For the same reason doc tests were developed to supersede unit tests, functional doc tests are intended to be a more descriptive solution to developing functional tests.

Chapter 44: Writing Tests Against Interfaces

If an interface is commonly implemented multiple times, it is a good idea to write tests directly against the interface as a base for the implementation tests. This chapter shows how to do that and expands on the motivation for it.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint