-
Chapter 1 Beginning Testing
-
Installing Test Modules
-
Running Tests
-
Interpreting Test Results
-
Writing Your First Test
-
Loading Modules
-
Improving Test Comparisons
-
-
Chapter 2 Writing Tests
-
Skipping Tests
-
Skipping All Tests
-
Marking Tests as TODO
-
Simple Data Structure Equality
-
Data Composition
-
Testing Warnings
-
Testing Exceptions
-
-
Chapter 3 Managing Tests
-
Organizing Tests
-
Checking Your Coverage
-
Writing a Testing Library
-
Testing a Testing Library
-
Writing a Testing Harness
-
Testing Across the Network
-
Automating Test Runs
-
-
Chapter 4 Distributing Your Tests (and Code)
-
Testing POD Files
-
Testing Documentation Coverage
-
Distribution Signatures
-
Testing Entire Distributions
-
Letting the User Decide
-
Letting the User Decide (Continued)
-
Bundling Tests with Modules
-
Collecting Test Results
-
Validating Kwalitee
-
-
Chapter 5 Testing Untestable Code
-
Overriding Built-ins
-
Mocking Modules
-
Mocking Objects
-
Partially Mocking Objects
-
Overriding Live Code
-
Overriding Operators Everywhere
-
-
Chapter 6 Testing Databases
-
Shipping Test Databases
-
Testing Database Data
-
Using Temporary Databases
-
Mocking Databases
-
-
Chapter 7 Testing Web Sites
-
Testing Your Backend
-
Testing Your Frontend
-
Record and Play Back Browsing Sessions
-
Testing the Validity of HTML
-
Running Your Own Apache Server
-
Testing with Apache-Test
-
Distributing Modules with Apache-Test
-
-
Chapter 8 Unit Testing with Test::Class
-
Writing Test Cases
-
Creating Test Fixtures
-
Inheriting Tests
-
Skipping Tests with Test::Class
-
Marking Tests as TODO with Test::Class
-
-
Chapter 9 Testing Everything Else
-
Writing Testable Programs
-
Testing Programs
-
Testing Interactive Programs
-
Testing Shared Libraries
-
-
Colophon
- Title:
- Perl Testing: A Developer's Notebook
- By:
- Ian Langworth, Chromatic
- Publisher:
- O'Reilly Media
- Formats:
-
- Safari Books Online
- Print Release:
- July 2005
- Pages:
- 208
- Print ISBN:
- 978-0-596-10092-6
- | ISBN 10:
- 0-596-10092-2
The Developer's Notebook series is modeled on the tradition of laboratory notebooks. Laboratory notebooks are an invaluable tool for researchers and their successors. The purpose of a laboratory notebook is to facilitate the recording of data and conclusions as the work is being conducted, creating a faithful and immediate history. The notebook begins with a title page that includes the owner's name and the subject of research. The pages of the notebook should be numbered and prefaced with a table of contents. Entries must be clear, easy to read, and accurately dated; they should use simple, direct language to indicate the name of the experiment and the steps taken. Calculations are written out carefully and relevant thoughts and ideas recorded. Each experiment is introduced and summarized as it is added to the notebook. The goal is to produce comprehensive, clearly organized notes that can be used as a reference. Careful documentation creates a valuable record and provides a practical guide for future developers.
