Skip to content

Commit

Permalink
Merge pull request #2 from magento-pangolin/unit-test-fixes
Browse files Browse the repository at this point in the history
MQE-2305: Implement `-report-type=mftf` in magento-semver to launch M…
  • Loading branch information
okolesnyk authored Oct 19, 2020
2 parents 15a1960 + 9e49bde commit b05b6af
Show file tree
Hide file tree
Showing 207 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions bin/svc
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@ if (PHP_SAPI !== 'cli') {

try {
$composerContents = json_decode(file_get_contents(__DIR__ . '/../composer.json'), true);
$version = $composerContents['version'] ?? '';
$name = $composerContents['description'] ?? 'Magento Semantic Version Checker';
$application = new Symfony\Component\Console\Application();
$application->setName($name);
$application->setVersion($version);
$application = new Symfony\Component\Console\Application(
$composerContents['description'],
$composerContents['version']
);
$application->add(new CompareSourceCommand());
$application->run();
} catch (\Exception $e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ protected function executeCommand($pathToSourceCodeBefore, $pathToSourceCodeAfte
'source-after' => $pathToSourceCodeAfter,
'--log-output-location' => $this->svcLogPath,
'--include-patterns' => __DIR__ . '/CompareSourceCommandTest/_files/application_includes.txt',
'--mftf' => true,
'--report-type' => ['mftf'],
]
);
return $commandTester;
Expand Down

0 comments on commit b05b6af

Please sign in to comment.