Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
33ad99b
commit 9cb5c09
Showing
14 changed files
with
233 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
.idea/* | ||
code-coverage/* | ||
docker/* | ||
log/* | ||
temp/* | ||
vendor/* | ||
build.ps1 | ||
clean.ps1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"source": { | ||
"directories": [ | ||
"src" | ||
] | ||
}, | ||
"logs": { | ||
"text": "log/infection.log" | ||
}, | ||
"timeout": 60, | ||
"tmpDir": "temp/cache/Tests" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<phpunit> | ||
<testsuites> | ||
<testsuite name="Tests"> | ||
<directory>tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<filter> | ||
<whitelist> | ||
<directory>src</directory> | ||
</whitelist> | ||
</filter> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- backend/vendor/infection/infection/src/Process/Listener/MutationTestingResultsLoggerSubscriber.php (date 1286705410000) | ||
+++ backend/vendor/infection/infection/src/Process/Listener/MutationTestingResultsLoggerSubscriber.php (date 1286705410000) | ||
@@ -77,9 +77,7 @@ | ||
|
||
public function getSubscribedEvents(): array | ||
{ | ||
- return [ | ||
- MutationTestingFinished::class => [$this, 'onMutationTestingFinished'], | ||
- ]; | ||
+ return []; | ||
} | ||
|
||
public function onMutationTestingFinished(MutationTestingFinished $event): void |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- backend/vendor/infection/infection/src/Process/Listener/MutantCreatingConsoleLoggerSubscriber.php (date 1286705410000) | ||
+++ backend/vendor/infection/infection/src/Process/Listener/MutantCreatingConsoleLoggerSubscriber.php (date 1286705410000) | ||
@@ -41,11 +41,7 @@ | ||
|
||
public function getSubscribedEvents(): array | ||
{ | ||
- return [ | ||
- MutantsCreatingStarted::class => [$this, 'onMutantsCreatingStarted'], | ||
- MutantCreated::class => [$this, 'onMutantCreated'], | ||
- MutantsCreatingFinished::class => [$this, 'onMutantsCreatingFinished'], | ||
- ]; | ||
+ return []; | ||
} | ||
|
||
public function onMutantsCreatingStarted(MutantsCreatingStarted $event): void |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- backend/vendor/infection/infection/src/Process/Listener/InitialTestsConsoleLoggerSubscriber.php (date 1286705410000) | ||
+++ backend/vendor/infection/infection/src/Process/Listener/InitialTestsConsoleLoggerSubscriber.php (date 1286705410000) | ||
@@ -48,11 +48,7 @@ | ||
|
||
public function getSubscribedEvents(): array | ||
{ | ||
- return [ | ||
- InitialTestSuiteStarted::class => [$this, 'onInitialTestSuiteStarted'], | ||
- InitialTestSuiteFinished::class => [$this, 'onInitialTestSuiteFinished'], | ||
- InitialTestCaseCompleted::class => [$this, 'onInitialTestCaseCompleted'], | ||
- ]; | ||
+ return []; | ||
} | ||
|
||
public function onInitialTestSuiteStarted(InitialTestSuiteStarted $event): void |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- backend/vendor/infection/infection/src/Performance/Listener/PerformanceLoggerSubscriber.php (date 1286705410000) | ||
+++ backend/vendor/infection/infection/src/Performance/Listener/PerformanceLoggerSubscriber.php (date 1286705410000) | ||
@@ -69,15 +69,8 @@ | ||
|
||
public function onApplicationExecutionFinished(): void | ||
{ | ||
- $time = $this->timer->stop(); | ||
+ $this->timer->stop(); | ||
|
||
- $this->output->writeln([ | ||
- '', | ||
- sprintf( | ||
- 'Time: %s. Memory: %s', | ||
- $this->timeFormatter->toHumanReadableString($time), | ||
- $this->memoryFormatter->toHumanReadableString(memory_get_peak_usage(true)) | ||
- ), | ||
- ]); | ||
+ $this->output->writeln(''); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- backend/vendor/infection/infection/src/Console/Application.php (date 1286705410000) | ||
+++ backend/vendor/infection/infection/src/Console/Application.php (date 1286705410000) | ||
@@ -75,8 +75,6 @@ | ||
$output->setVerbosity(OutputInterface::VERBOSITY_QUIET); | ||
} | ||
|
||
- $this->logRunningWithDebugger(); | ||
- | ||
if (!$this->isAutoExitEnabled()) { | ||
// When we're not in control of exit codes, that means it's the caller | ||
// responsibility to disable xdebug if it isn't needed. As of writing | ||
@@ -113,8 +111,6 @@ | ||
{ | ||
$this->getContainer()->buildDynamicDependencies($input); | ||
|
||
- $output->writeln(self::LOGO); | ||
- | ||
return parent::doRun($input, $output); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- backend/vendor/infection/infection/src/Process/Listener/MutationGeneratingConsoleLoggerSubscriber.php (date 1286705410000) | ||
+++ backend/vendor/infection/infection/src/Process/Listener/MutationGeneratingConsoleLoggerSubscriber.php (date 1286705410000) | ||
@@ -41,11 +41,7 @@ | ||
|
||
public function getSubscribedEvents(): array | ||
{ | ||
- return [ | ||
- MutationGeneratingStarted::class => [$this, 'onMutationGeneratingStarted'], | ||
- MutableFileProcessed::class => [$this, 'onMutableFileProcessed'], | ||
- MutationGeneratingFinished::class => [$this, 'onMutationGeneratingFinished'], | ||
- ]; | ||
+ return []; | ||
} | ||
|
||
public function onMutationGeneratingStarted(MutationGeneratingStarted $event): void |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- backend/vendor/infection/infection/src/Process/Listener/CleanUpAfterMutationTestingFinishedSubscriber.php (date 1286705410000) | ||
+++ backend/vendor/infection/infection/src/Process/Listener/CleanUpAfterMutationTestingFinishedSubscriber.php (date 1286705410000) | ||
@@ -36,9 +36,7 @@ | ||
|
||
public function getSubscribedEvents(): array | ||
{ | ||
- return [ | ||
- MutationTestingFinished::class => [$this, 'onMutationTestingFinished'], | ||
- ]; | ||
+ return []; | ||
} | ||
|
||
public function onMutationTestingFinished(MutationTestingFinished $event): void |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- backend/vendor/infection/infection/src/Console/OutputFormatter/DotFormatter.php (date 1286705410000) | ||
+++ backend/vendor/infection/infection/src/Console/OutputFormatter/DotFormatter.php (date 1286705410000) | ||
@@ -30,21 +30,6 @@ | ||
$this->output = $output; | ||
} | ||
|
||
- public function start(int $mutationCount): void | ||
- { | ||
- parent::start($mutationCount); | ||
- | ||
- $this->output->writeln([ | ||
- '', | ||
- '<killed>.</killed>: killed, ' | ||
- . '<escaped>M</escaped>: escaped, ' | ||
- . '<uncovered>S</uncovered>: uncovered, ' | ||
- . '<with-error>E</with-error>: fatal error, ' | ||
- . '<timeout>T</timeout>: timed out', | ||
- '', | ||
- ]); | ||
- } | ||
- | ||
public function advance(MutantProcessInterface $mutantProcess, int $mutationCount): void | ||
{ | ||
parent::advance($mutantProcess, $mutationCount); | ||
@@ -59,7 +44,7 @@ | ||
|
||
break; | ||
case MutantProcess::CODE_ESCAPED: | ||
- $this->output->write('<escaped>M</escaped>'); | ||
+ $this->output->write('<escaped>F</escaped>'); | ||
|
||
break; | ||
case MutantProcess::CODE_TIMED_OUT: | ||
@@ -82,9 +67,9 @@ | ||
|
||
if ($lastDot || $endOfRow) { | ||
$length = \strlen((string) $mutationCount); | ||
- $format = sprintf(' (%%%dd / %%%dd)', $length, $length); | ||
+ $format = sprintf(' %%%dd / %%%dd (%%3d%%%%)', $length, $length); | ||
|
||
- $this->output->write(sprintf($format, $this->callsCount, $mutationCount)); | ||
+ $this->output->write(sprintf($format, $this->callsCount, $mutationCount, ($this->callsCount / $mutationCount) * 100)); | ||
|
||
if ($this->callsCount !== $mutationCount) { | ||
$this->output->writeln(''); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- backend/vendor/infection/infection/src/Process/Listener/MutationTestingConsoleLoggerSubscriber.php (date 1286705410000) | ||
+++ backend/vendor/infection/infection/src/Process/Listener/MutationTestingConsoleLoggerSubscriber.php (date 1286705410000) | ||
@@ -102,16 +102,6 @@ | ||
public function onMutationTestingFinished(MutationTestingFinished $event): void | ||
{ | ||
$this->outputFormatter->finish(); | ||
- | ||
- if ($this->showMutations) { | ||
- $this->showMutations($this->metricsCalculator->getEscapedMutantProcesses(), 'Escaped'); | ||
- | ||
- if ($this->output->getVerbosity() > OutputInterface::VERBOSITY_NORMAL) { | ||
- $this->showMutations($this->metricsCalculator->getNotCoveredMutantProcesses(), 'Not covered'); | ||
- } | ||
- } | ||
- | ||
- $this->showMetrics(); | ||
} | ||
|
||
/** |