in reply to Most painless way to update the number of tests run?
There are cases when you will not know beforehand how many tests your script is going to run. In this case, you can declare your tests at the end. use Test::More; ... run your tests ... done_testing( $number_of_tests_run ); Sometimes you really don't know how many tests were run, or it's too difficult to calculate. In which case you can leave off $number_of_tests_run.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Most painless way to update the number of tests run?
by nysus (Parson) on Feb 12, 2017 at 04:47 UTC | |
by choroba (Cardinal) on Feb 12, 2017 at 05:00 UTC | |
by BillKSmith (Monsignor) on Feb 12, 2017 at 15:11 UTC | |
by stevieb (Canon) on Feb 12, 2017 at 05:53 UTC |