Front page | perl.perl5.porters |
Postings from September 2010
Test counts
Thread Next
From:
Father Chrysostomos
Date:
September 5, 2010 14:27
Subject:
Test counts
Message ID:
30923A63-AC0A-418E-9D92-CCE86EA9585C@cpan.org
Currently, if a patch adjusts a test count, it’s very likely going to conflict with any other patch modifying the same test file.
There’s a test-counting technique I came up with, which I think I first used in CSS::DOM. It is to put an entry in %INC and create a tests::VERSION sub so that one can write
use tests 2;
before a block containing 2 tests. Then a CHECK routine calls plan() with the number of tests that has accumulated.
Would it be good to add something like this to test.pl, or are we trying to avoid using too many Perl features in that script?
Thread Next
-
Test counts
by Father Chrysostomos