Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
Chapters six and seven seem to go hand and hand as one reviews database and data set testing and the other covers website and backend testing. I really appreciate the ideas that chapter six presents about database and data set testing. It doesn't just stop at testing connections and such but also goes into mock databases, temporary databases and writing wrappers for extending testing.

Chapter seven goes into testing websites in the same fashion that chapter six covers testing databases. My only gripe is that it doesn't go too deeply into backend testing. The frontend testing is fairly comprehensive and it gives a lot of example on using WWW::Mechanize and other toolkits to efficiently recreate user experience. It also talks lightly about page validation. Toward the end of the chapter it gives a lot of detail on running a test server using Apache::Test and being able to really localize all of your web server and page testing. This is great because it allows you to do basic load and resource testing as well as keeping all of the build and testing of a web service completely separate from production areas.

Chapter 8 tries to cover object oriented testing with Test::Class. This is a relatively different way of testing compared to the styles and standards presented in Test::Simple or Test::More. This presents some very interesting views on object and class testing inheritance.

Chapter 9 cleans up by discussing practical ideas on writing testable code and programs. One thing that I found nice was that it touched shared library testing and interactive program testing.

I find this book very useful because of its practical example and reinforcement of good testing standards. It has become a solid reference for quick tips on test unit creation, testing methods in general, and test coverage testing. I recommend it for anyone who is looking to start working with more focused testing or want to expanding there current testing knowledge in general.

Table of Contents
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 your 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
+ 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 Data
+ 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 Test Fixtures
+ 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

In reply to Perl Testing by sock

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others chanting in the Monastery: (3)
    As of 2020-06-05 04:26 GMT
    Find Nodes?
      Voting Booth?
      Do you really want to know if there is extraterrestrial life?

      Results (35 votes). Check out past polls.