in reply to Re^5: Given my Raspberry Pi work, Happy Pi day Perlmonks!
in thread Given my Raspberry Pi work, Happy Pi day Perlmonks!

not just because it means I will have to update *insert number of tests in number of tests files here*
I would heavily encourage everyone to change
use Test::More tests => $n; # ...
to
use Test::More; # ... done_testing;
You need to update your Makefile.PL's Test::More requirement to 0.88. No more test-counting by you, ever!

Replies are listed 'Best First'.
Re^7: Given my Raspberry Pi work, Happy Pi day Perlmonks!
by choroba (Cardinal) on Sep 09, 2024 at 15:00 UTC
    > No more test-counting by you, ever!

    I'm not a fan of this (and I probably already posted about it in the past). Here's why: We had many complex tests at $job-2 and working on a ticket usually meant spending more time fixing the tests than implementing the changes themselves. Some tests used a framework where counting the tests wasn't even possible - and several times, we found out too late that a change caused some of the tests being skipped, but if they hadn't been skipped, the would have failed. Therefore, I prefer counting the tests, even if I need to fix the number often: non-running failing tests are worse than missing tests, because they give you a false sense of security.

    map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
Re^7: Given my Raspberry Pi work, Happy Pi day Perlmonks!
by cavac (Prior) on Sep 09, 2024 at 14:36 UTC