On Mon, Apr 5, 2010 at 1:58 PM, Joe McMahon <mcma...@ibiblio.org> wrote:
> On Mon, Apr 5, 2010 at 1:34 AM, Gabor Szabo <szab...@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

Reply via email to