You are viewing a plain text version of this content. The canonical link for it is here.
Posted to test-dev@httpd.apache.org by Abhishek Khandelwal <ak...@spikesource.com> on 2004/04/02 20:32:48 UTC
Apache test -- Perl-test-framework
Is there a way to count the total number of tests when the perl-test
suits are run.
If all the tests passes, then in final report it specifies the total
number of files and total number of tests run. But in case there are
tests which fails, it publishes a report which looks like as follows:
------------------------------------------------------------------
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
modules/cgi.t 50 21 42.00% 14 16 24 26 28 30 32 34 36 38-
41 43-50
modules/include.t 82 6 7.32% 11 27 39 41-42 65
ssl/http.t 255 65280 2 4 200.00% 1-2
ssl/proxy.t 169 2 1.18% 114 117
2 tests and 14 subtests skipped.
!!! error running tests (please examine t/logs/error_log)
------------------------------------------------------------------
Now I dont have any way to know how many total tests were run as the report only shows the results of failed tests.
Does anyone know a way to do it. My guess is, I can somehow instrument Apache::Test or Apache::TestRequest etc to get the total count.
Please help.
Thanks,
Abhishek
Re: Apache test -- Perl-test-framework
Posted by Stas Bekman <st...@stason.org>.
Abhishek Khandelwal wrote:
> Is there a way to count the total number of tests when the perl-test
> suits are run.
> If all the tests passes, then in final report it specifies the total
> number of files and total number of tests run. But in case there are
> tests which fails, it publishes a report which looks like as follows:
>
> ------------------------------------------------------------------
> Failed Test Stat Wstat Total Fail Failed List of Failed
> -------------------------------------------------------------------------------
> modules/cgi.t 50 21 42.00% 14 16 24 26 28 30 32 34 36 38-
> 41 43-50
> modules/include.t 82 6 7.32% 11 27 39 41-42 65
> ssl/http.t 255 65280 2 4 200.00% 1-2
> ssl/proxy.t 169 2 1.18% 114 117
> 2 tests and 14 subtests skipped.
> !!! error running tests (please examine t/logs/error_log)
>
> ------------------------------------------------------------------
>
> Now I dont have any way to know how many total tests were run as the report only shows the results of failed tests.
>
> Does anyone know a way to do it. My guess is, I can somehow instrument Apache::Test or Apache::TestRequest etc to get the total count.
>
> Please help.
Abhishek, this report is printed by Test::Harness, not Apache-Test, i.e. it's
not under our control. Feel free
to contact the authors of Test::Harness at bug-test-harness <at> rt.cpan.org
and ask them to fix that. This part of the report is definitely missing, IMHO.
Thanks.
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com