develooper Front page | perl.qa | Postings from April 2010

Re: getting more details from a test script

Thread Previous | Thread Next
From:
Gabor Szabo
Date:
April 5, 2010 10:51
Subject:
Re: getting more details from a test script
Message ID:
p2sd8a74af11004051050mc5877552g3bcf8e5ceef5a06c@mail.gmail.com
On Mon, Apr 5, 2010 at 1:58 PM, Joe McMahon <mcmahon@ibiblio.org> wrote:
> On Mon, Apr 5, 2010 at 1:34 AM, Gabor Szabo <szabgab@gmail.com> wrote:

>> I could write this:
>>
>> $mech->content_like(qr{regex}) or diag $mech->content;
>>
>> but then I get all the content in the TAP stream making it quite unreadable.
> Yep. That's why we implemented the snapshot plugin for
> WWW::Mechanize::Pluggable. It automatically takes snapshots to a
> directory you set up at the start of the test script and diags() out a
> message saying where the snapshot is.
>
> It would be possible to set this up so that the snapshots were enabled
> only if (say) and environment variable was set.
>

I'll take a look at this.

Gabor

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About