|
@@ 93-109 (lines=17) @@
|
| 90 |
|
$this->assertContains('Executed: 13 test classes (18 retried), 23 tests', $output); |
| 91 |
|
} |
| 92 |
|
|
| 93 |
|
public function testExecutionWithLogo() |
| 94 |
|
{ |
| 95 |
|
$configurationPath = $this->getConfigForStubs(); |
| 96 |
|
$application = new Application(); |
| 97 |
|
$application->add(new ParallelCommand(new ParallelConfiguration())); |
| 98 |
|
|
| 99 |
|
$command = $application->find('run'); |
| 100 |
|
$commandTester = new CommandTester($command); |
| 101 |
|
$commandTester->execute([ |
| 102 |
|
'command' => $command->getName(), |
| 103 |
|
'--logo' => $configurationPath, |
| 104 |
|
'--filter' => 'doNotExecuteAnyTestSoItsFaster', |
| 105 |
|
]); |
| 106 |
|
|
| 107 |
|
$output = $commandTester->getDisplay(); |
| 108 |
|
$this->assertContains('BBBBbBBBBBBB', $output, 'Shark logo missing'); |
| 109 |
|
} |
| 110 |
|
|
| 111 |
|
public function testExecutionWithDebugEnabled() |
| 112 |
|
{ |
|
@@ 142-158 (lines=17) @@
|
| 139 |
|
$this->assertSame($processRetried, substr_count($output, 'PROCESS TO BE RETRIED')); |
| 140 |
|
} |
| 141 |
|
|
| 142 |
|
public function testExecutionWithParametersWithoutValue() |
| 143 |
|
{ |
| 144 |
|
$configurationPath = $this->getConfigForStubs(); |
| 145 |
|
$application = new Application(); |
| 146 |
|
$application->add(new ParallelCommand(new ParallelConfiguration())); |
| 147 |
|
|
| 148 |
|
$command = $application->find('run'); |
| 149 |
|
$commandTester = new CommandTester($command); |
| 150 |
|
$exitCode = $commandTester->execute([ |
| 151 |
|
'command' => $command->getName(), |
| 152 |
|
'--configuration' => $configurationPath, |
| 153 |
|
'stringFilter' => 'green', |
| 154 |
|
'--dont-report-useless-tests' => true, |
| 155 |
|
]); |
| 156 |
|
|
| 157 |
|
$this->assertSame(0, $exitCode); |
| 158 |
|
} |
| 159 |
|
|
| 160 |
|
public function testExecutionWithoutConfiguration() |
| 161 |
|
{ |
|
@@ 160-176 (lines=17) @@
|
| 157 |
|
$this->assertSame(0, $exitCode); |
| 158 |
|
} |
| 159 |
|
|
| 160 |
|
public function testExecutionWithoutConfiguration() |
| 161 |
|
{ |
| 162 |
|
$application = new Application(); |
| 163 |
|
$application->add(new ParallelCommand(new ParallelConfiguration())); |
| 164 |
|
|
| 165 |
|
$command = $application->find('run'); |
| 166 |
|
$commandTester = new CommandTester($command); |
| 167 |
|
$exitCode = $commandTester->execute([ |
| 168 |
|
'command' => $command->getName(), |
| 169 |
|
'--filter' => 'do_not_execute_anything', |
| 170 |
|
]); |
| 171 |
|
|
| 172 |
|
$output = $commandTester->getDisplay(); |
| 173 |
|
$this->assertContains('NO TESTS EXECUTED', $output); |
| 174 |
|
$this->assertContains('0 tests', $output); |
| 175 |
|
$this->assertSame(0, $exitCode); |
| 176 |
|
} |
| 177 |
|
|
| 178 |
|
public function testExecutionWithDeprecationListener() |
| 179 |
|
{ |