Subject: | wrong test count should result in failure |
If there are more tests than planned, or for some reason planning happens more than once from the same file, T-H should fail and not print 'All tests successful', since something is wrong.
e.g. with T-H 2.40 if I get into a loop in the same .t file I get:
Test header seen more than once!
ok 1
Test output counter mismatch [test 5]
ok 2
Test output counter mismatch [test 6]
ok 3
Test output counter mismatch [test 7]
ok 4
Test output counter mismatch [test 8]
ok
All tests successful.
My test has a problem, but T-H is happy.