Skip to content
Permalink
Browse files

Enhancement: Sort cases

  • Loading branch information...
localheinz authored and sebastianbergmann committed May 6, 2019
1 parent f56ec99 commit ac71c8c9c081a742570e88770c8883f2cfa1fbad
Showing with 27 additions and 21 deletions.
  1. +12 −12 src/TextUI/Command.php
  2. +15 −9 src/Util/Configuration.php
@@ -1267,16 +1267,6 @@ private function handleOrderByOption(string $value): void
break;
case 'reverse':
$this->arguments['executionOrder'] = TestSuiteSorter::ORDER_REVERSED;
break;
case 'random':
$this->arguments['executionOrder'] = TestSuiteSorter::ORDER_RANDOMIZED;
break;
case 'defects':
$this->arguments['executionOrderDefects'] = TestSuiteSorter::ORDER_DEFECTS_FIRST;
@@ -1287,13 +1277,23 @@ private function handleOrderByOption(string $value): void
break;
case 'duration':
$this->arguments['executionOrder'] = TestSuiteSorter::ORDER_DURATION;
break;
case 'no-depends':
$this->arguments['resolveDependencies'] = false;
break;
case 'duration':
$this->arguments['executionOrder'] = TestSuiteSorter::ORDER_DURATION;
case 'random':
$this->arguments['executionOrder'] = TestSuiteSorter::ORDER_RANDOMIZED;
break;
case 'reverse':
$this->arguments['executionOrder'] = TestSuiteSorter::ORDER_REVERSED;
break;
@@ -834,28 +834,34 @@ public function getPHPUnitConfiguration(): array
$result['resolveDependencies'] = false;
break;
case 'reverse':
$result['executionOrder'] = TestSuiteSorter::ORDER_REVERSED;
break;
case 'random':
$result['executionOrder'] = TestSuiteSorter::ORDER_RANDOMIZED;
break;
case 'defects':
$result['executionOrderDefects'] = TestSuiteSorter::ORDER_DEFECTS_FIRST;
break;
case 'depends':
$result['resolveDependencies'] = true;
break;
case 'duration':
$result['executionOrder'] = TestSuiteSorter::ORDER_DURATION;
break;
case 'no-depends':
$result['resolveDependencies'] = false;
break;
case 'duration':
$result['executionOrder'] = TestSuiteSorter::ORDER_DURATION;
case 'random':
$result['executionOrder'] = TestSuiteSorter::ORDER_RANDOMIZED;
break;
case 'reverse':
$result['executionOrder'] = TestSuiteSorter::ORDER_REVERSED;
break;
}

0 comments on commit ac71c8c

Please sign in to comment.
You can’t perform that action at this time.