Development

Changeset 21239

You must first sign up to be able to contribute.

Changeset 21239

Show
Ignore:
Timestamp:
08/18/09 22:42:13 (5 years ago)
Author:
bschussek
Message:

Added display of the number of concurrent test processes in the summary output

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tools/lime/branches/2.0-experimental/lib/output/LimeOutputConsoleSummary.php

    r21237 r21239  
    3434    $this->options = array_merge(array( 
    3535      'base_dir'  => null, 
     36      'processes' => 1, 
    3637    ), $options); 
    3738  } 
     
    208209    { 
    209210      $time = max(1, time() - $this->startTime); 
    210       $stats = sprintf(' Files=%d, Tests=%d, Time=%02d:%02d', 
    211           $this->actualFiles, $this->actualTests, round($time/60), $time%60); 
     211      $stats = sprintf(' Files=%d, Tests=%d, Time=%02d:%02d, Processes=%d', 
     212          $this->actualFiles, $this->actualTests, round($time/60), $time%60, $this->options['processes']); 
    212213 
    213214      $this->printer->printBox(' All tests successful.', LimePrinter::HAPPY); 
  • tools/lime/branches/2.0-experimental/test/unit/output/LimeOutputConsoleSummaryTest.php

    r21231 r21239  
    176176  $printer->any('printLine'); 
    177177  $printer->printBox(' All tests successful.', LimePrinter::HAPPY); 
    178   $printer->printBox(' Files=2, Tests=3, Time=00:01', LimePrinter::HAPPY); 
    179   $printer->replay(); 
    180   $output = new LimeOutputConsoleSummary($printer); 
     178  $printer->printBox(' Files=2, Tests=3, Time=00:01, Processes=3', LimePrinter::HAPPY); 
     179  $printer->replay(); 
     180  $output = new LimeOutputConsoleSummary($printer, array('processes' => 3)); 
    181181  // test 
    182182  $output->focus('/test/script1');