From: des Date: Fri, 15 Jun 2007 11:23:13 +0000 (+0000) Subject: Improve the report further. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c668145d1dc688c3b463d1f6af61e2efbdfc4cb8;p=varnish Improve the report further. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1527 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-tools/regress/lib/Varnish/Test/Report.pm b/varnish-tools/regress/lib/Varnish/Test/Report.pm index 679951c9..7770bfdf 100644 --- a/varnish-tools/regress/lib/Varnish/Test/Report.pm +++ b/varnish-tools/regress/lib/Varnish/Test/Report.pm @@ -57,7 +57,20 @@ sub run($@) { die "No template defined\n" unless defined($self->{'template'}); my $template = new Template($self->{'config'}); - $template->process($self->{'template'}, { 'cases' => \@cases }) + my ($count, $pass, $fail, $time); + map { + $count += $_->{'count'}; + $pass += $_->{'pass'}; + $fail += $_->{'fail'}; + $time += $_->{'time'}; + } @cases; + $template->process($self->{'template'}, { + 'cases' => \@cases, + 'count' => $count, + 'pass' => $pass, + 'fail' => $fail, + 'time' => $time, + }) or die $template->error(); } diff --git a/varnish-tools/regress/lib/Varnish/Test/Report/report.html b/varnish-tools/regress/lib/Varnish/Test/Report/report.html index 6fbcdf8a..4549f303 100644 --- a/varnish-tools/regress/lib/Varnish/Test/Report/report.html +++ b/varnish-tools/regress/lib/Varnish/Test/Report/report.html @@ -6,38 +6,57 @@ Varnish test report +

Varnish test report

- - - - - - - - + + + + + + + + + + - - - - - - + + + + + + + + + + + + + + + +
NameTimeTestsPassedFailedDescription
NameTestsPassFailTimeDescription
s
Total s