Leader of Birmingham.pm [pm.org] and a CPAN author [cpan.org]. Co-organised YAPC::Europe in 2006 and the 2009 QA Hackathon, responsible for the YAPC Conference Surveys [yapc-surveys.org] and the QA Hackathon [qa-hackathon.org] websites. Also the current caretaker for the CPAN Testers websites and data stores.
If you really want to find out more, buy me a Guinness
Links:
Memoirs of a Roadie [missbarbell.co.uk]
[pm.org]
CPAN Testers Reports [cpantesters.org]
YAPC Conference Surveys [yapc-surveys.org]
QA Hackathon [qa-hackathon.org]
I found Schwern's very good Test::Tutorial page, which goes a long way to what I wanted but not quite far enough. I basically wanted to write test suites not just for modules but for whole scripts. A mammoth task I know, but but worth it in the long run. But there isn't anything
I hope Schwern puts his talk online somewhere, or perhaps goes that bit further by writing a book about it all. I enjoyed his talk at last year's YAPC::Europe but at the time didn't have the time to persue it further. I note he's proposed some talks for this years YAPC::Europe, which I hope to be a bit more proactive about this time.
In the meantime, if anyone knows of some good tutorials or guides online, please let me know.
Testing whole scripts (Score:1)
Re:Testing whole scripts (Score:1)
I'm about to roll out some HTML testing stuff today or tomorrow that might be useful, too, along those lines. It'll be wrappers around HTML::Lint.
Maybe we should put up sample code that shows how people use the testing stuff in the real world.
--
xoa
Re:Testing whole scripts (Score:1)
# corresponds to a Session.pm file I have.
# It could certainly be more robust, and test
# more options than just some simple scalars.
#!/usr/bin/perl -w
use strict;
use constant SAVEPATH=>'/tmp';
use Test::More tests=>7;
BEGIN {
use_ok( 'TW::Session' );
}
my $saved_session_id;
CREATE: {
my $session = new TW::Session( SavePath=>SAVEPATH );
isa_ok( $session, 'TW::Session', 'Created first session' );
$session-
--
xoa