[DCPM] New testing module

Aaron Trevena aaron.trevena at gmail.com
Tue Dec 30 11:27:54 PST 2008


2008/12/30 Matthew Browning <matthewbrowning at gmail.com>:
> On Tue, Dec 30, 2008 at 3:35 PM, Aaron Trevena <aaron.trevena at gmail.com> wrote:
>> Hi all,
>>
>> I've written a new testing module for a client, based on
>> Test::HTML::Content but skipping the xpath code, and making it faster
>> by re-using parse trees.
>>
>
> Let's have a look then ;)

Waiting for the OK from slando - in the meantime you can have another
snippet from the synopsis :

form_select_field_ok($filename,{ field_name => $field_name, selected
=> $field_value,  form_name => $form_name}, $description);

Hopefully will have it on CPAN in the new year, once I've got the OK,
repackaged it for CPAN, and added full radio/checkbox support.

Currently, I'm finding adding a huge number of tests to the workflow
code rather satisfying, and it's already caused me to find some
duplicate fields that could cause bugs, before I even start on testing
specific failures and edge cases.

A.

-- 
http://www.aarontrevena.co.uk
LAMP System Integration, Development and Hosting


More information about the Devoncornwall-pm mailing list