On Sun, 9 Feb 2014 23:18:24 +0000, Tim Bunce <tim.bu...@pobox.com> wrote:
> As you probably know, I've been hacking on a rough DBI::Test prototype > for a while. My primary goal has been to discover and explore the issues. > Trying to write only the minimum amount of code to do so. > > It's now at the stage where there's something basic working for > all the key aspects... > > Test variant generation > The interface between the generated test script and the input test module > Integration with Test::Database > Fixture provider abstraction > Fixture abstraction, including auto-teardown on DESTROY > Support for unique table names so parallel testing works > > Please take a moment to read this README file: > > https://github.com/perl5-dbi/DBI-Test/blob/master/sandbox/tim/README.pod > > Then, ideally, checkout the repo and play with it. > > Then, please, give me feedback! > > What's good? > What's bad? DBI-Test-git/sandbox/tim 517 > perl tumbler.pl String found where operator expected at tumbler.pl line 269, near "croak "Test variant setting key '$dst_key' already exists"" (Do you need to predeclare croak?) syntax error at tumbler.pl line 269, near "croak "Test variant setting key '$dst_key' already exists"" Global symbol "$dst_key" requires explicit package name at tumbler.pl line 271. Global symbol "$src_key" requires explicit package name at tumbler.pl line 271. syntax error at tumbler.pl line 274, near "}" Can't use global @_ in "my" at tumbler.pl line 278, near "= @_" syntax error at tumbler.pl line 313, near "}" Execution of tumbler.pl aborted due to compilation errors. > What can be done better? > What's missing? a "use Carp;" statement > What's are the priorities now? I think riba and I would agree that there should be a template to copy for *any* DBD as a strating-kit USAGE: $ cd /your/DBD-xxx $ perl -MDBI-Test -we'install_templates()' $ perl dbi-test-tumbler.pl $ prove -j4 -sr out Maybe I am too narrow-minded, but I like to work from the results backward. I find it hard to comment on anything that I do not know how to use. > Thanks! > > Tim. -- H.Merijn Brand http://tux.nl Perl Monger http://amsterdam.pm.org/ using perl5.00307 .. 5.19 porting perl5 on HP-UX, AIX, and openSUSE http://mirrors.develooper.com/hpux/ http://www.test-smoke.org/ http://qa.perl.org http://www.goldmark.org/jeff/stupid-disclaimers/