On 9 April 2010 18:04, Bob McConnell <[email protected]> wrote:
> After a great deal of reading and speculation, it looks like YAML is the
> way to go. I will have to move the loop inside each test script, and
> iterate thorough the records read. The biggest problem is that the plan
> is no longer fixed, so I do lose some auditability, but I don't see a
> cleaner way to do this.

Assuming that you're using Test::More, you don't have to know your
plan when you 'use Test::More'; you can create your plan from
calculated values later on, provided it's before you start testing:

  use Test::More;

  # Read config file and count testcases...

  plan tests => tests_per_testcase * $num_tests;

  # Start tests here

Phil

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to