Skip to content

Commit

Permalink
add total committed
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoe Slattery committed May 23, 2009
1 parent 00faab7 commit 5f7b573
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions scripts/testfestsource/src/displayresults.php
Expand Up @@ -61,6 +61,7 @@

//get the list of committed files
$testNames = file($publishDir . "/commits");
$totalCommittedTests = count($testNames);
$committedTests = array();

foreach ($testNames as $line) {
Expand All @@ -72,13 +73,14 @@
$_SESSION['filebase'] = $filebase;
$_SESSION['relat'] = $relat;

$summary = buildSummary($relat);
$summary = buildSummary($relat, $totalCommittedTests);
echo $summary;


$out = buildSummaryTable($states, $relat, $filebase, $committedTests);
echo $out;

function buildSummary($relat) {
function buildSummary($relat, $totalCommittedTests) {
$groups = array();
foreach($relat as $testname) {
preg_match("/.*_(\w+)$/", $testname, $matches);
Expand All @@ -95,7 +97,9 @@ function buildSummary($relat) {
$totalTests += $numberOfTests;
$htmlString .= "Tests from group $groupName = $numberOfTests<br>";
}
$htmlString .= "<br><b>Total tests contributed = $totalTests</b><br><br>";
$htmlString .= "<br><b>Total tests contributed = $totalTests</b><br>";

$htmlString .= "<br><b>Total tests moved to PHP CVS = $totalCommittedTests</b><br><br>";

return $htmlString;
}
Expand Down

0 comments on commit 5f7b573

Please sign in to comment.