Re: CPANifying our test framework - or parts of it

2016-09-10 Thread Sam Kington
On 10 Sep 2016, at 21:00, Andy Lester wrote: > On Sep 9, 2016, at 8:34 PM, Sam Kington wrote: >> How should I best extract this functionality into a proper CPAN distribution >> (ideally using Test2)? > > I'd start with making it use Test2. Test2 covers a lot of

Re: CPANifying our test framework - or parts of it

2016-09-10 Thread Sam Kington
rk does. > On 09/09/2016 09:34 PM, Sam Kington wrote: >> At its most elaborate, our current test code lets you say e.g. >> >> # Assume $self->state('location_id') has been set previously >> $self->test( > > Of what class is $self an instance? The c

Re: CPANifying our test framework - or parts of it

2016-09-10 Thread Sam Kington
On 10 Sep 2016, at 04:17, Karen Etheridge wrote: > > You might find Test::Deep right up your alley! Thanks - I have looked at Test::Deep in the past, and I recall there being things we wanted that it didn’t do. But I’ll take another look. Sam -- Website: http://www.illuminated.co.uk/

CPANifying our test framework - or parts of it

2016-09-09 Thread Sam Kington
Hi, At $WORK we have an extensive test suite that we’ve built up over the years, with loads of convenience methods for calling e.g. Dancer endpoints and checking returned data structures against what we expect. One of our dev team recently left for pastures new, and would like to carry on using

Test::Class annoyances

2012-06-07 Thread Sam Kington
Hi, We've been using Test::Class at $WORK a few months now, and it's been very handy indeed. But there were a couple of things that were bothering me about it, and this afternoon I finally got around to having a look at them. One of the annoyances is the apparently-random order that Test::Class