bessarabov / Test-Whitespaces

test source code for errors in whitespaces
4 stars 0 forks source link

Fix incorrect test count #29

Open bessarabov opened 11 years ago

bessarabov commented 11 years ago

From https://github.com/PerlDancer/Dancer2/pull/456

You don't take the test count from Test::Builder or update that count, so you'll always start printing 'ok 1' even if another test has already run. As such, my point stands - in fact, because $current_test is a lexical I can't even hack around the bug. So, no, it does not work fine in the Perl test ecosystem and it needs to be fixed.