Skip to content

Commit 9e49bde

Browse files
committed
MQE-2305: Implement -report-type=mftf in magento-semver to launch MFTF SVC
- fix MFTF Unit tests
1 parent 15a1960 commit 9e49bde

File tree

207 files changed

+5
-6
lines changed
  • bin
  • tests/Unit/Console/Command
    • CompareSourceCommandTest/_files/mftf
      • actionGroup-action-added
      • actionGroup-action-changed
      • actionGroup-action-removed
      • actionGroup-action-type-changed
      • actionGroup-added
      • actionGroup-argument-added
      • actionGroup-argument-changed
      • actionGroup-argument-removed
      • actionGroup-remove-action-added
      • actionGroup-remove-action-key-changed
      • actionGroup-remove-action-removed
      • actionGroup-removed
      • data-added
        • source-code-after/Magento/TestModule/Test/Mftf/Data
        • source-code-before/Magento/TestModule/Test/Mftf/Data
      • data-array-added
        • source-code-after/Magento/TestModule/Test/Mftf/Data
        • source-code-before/Magento/TestModule/Test/Mftf/Data
      • data-array-item-removed
        • source-code-after/Magento/TestModule/Test/Mftf/Data
        • source-code-before/Magento/TestModule/Test/Mftf/Data
      • data-array-removed
        • source-code-after/Magento/TestModule/Test/Mftf/Data
        • source-code-before/Magento/TestModule/Test/Mftf/Data
      • data-field-added
        • source-code-after/Magento/TestModule/Test/Mftf/Data
        • source-code-before/Magento/TestModule/Test/Mftf/Data
      • data-field-removed
        • source-code-after/Magento/TestModule/Test/Mftf/Data
        • source-code-before/Magento/TestModule/Test/Mftf/Data
      • data-removed
        • source-code-after/Magento/TestModule/Test/Mftf/Data
        • source-code-before/Magento/TestModule/Test/Mftf/Data
      • data-reqentity-added
        • source-code-after/Magento/TestModule/Test/Mftf/Data
        • source-code-before/Magento/TestModule/Test/Mftf/Data
      • data-reqentity-removed
        • source-code-after/Magento/TestModule/Test/Mftf/Data
        • source-code-before/Magento/TestModule/Test/Mftf/Data
      • data-var-added
        • source-code-after/Magento/TestModule/Test/Mftf/Data
        • source-code-before/Magento/TestModule/Test/Mftf/Data
      • data-var-removed
        • source-code-after/Magento/TestModule/Test/Mftf/Data
        • source-code-before/Magento/TestModule/Test/Mftf/Data
      • metadata-added
        • source-code-after/Magento/TestModule/Test/Mftf/Metadata
        • source-code-before/Magento/TestModule/Test/Mftf/Metadata
      • metadata-auth-changed
        • source-code-after/Magento/TestModule/Test/Mftf/Metadata
        • source-code-before/Magento/TestModule/Test/Mftf/Metadata
      • metadata-bottom-level-child-added
        • source-code-after/Magento/TestModule/Test/Mftf/Metadata
        • source-code-before/Magento/TestModule/Test/Mftf/Metadata
      • metadata-bottom-level-child-removed
        • source-code-after/Magento/TestModule/Test/Mftf/Metadata
        • source-code-before/Magento/TestModule/Test/Mftf/Metadata
      • metadata-datatype-changed
        • source-code-after/Magento/TestModule/Test/Mftf/Metadata
        • source-code-before/Magento/TestModule/Test/Mftf/Metadata
      • metadata-method-changed
        • source-code-after/Magento/TestModule/Test/Mftf/Metadata
        • source-code-before/Magento/TestModule/Test/Mftf/Metadata
      • metadata-removed
        • source-code-after/Magento/TestModule/Test/Mftf/Metadata
        • source-code-before/Magento/TestModule/Test/Mftf/Metadata
      • metadata-top-level-child-added
        • source-code-after/Magento/TestModule/Test/Mftf/Metadata
        • source-code-before/Magento/TestModule/Test/Mftf/Metadata
      • metadata-top-level-child-removed
        • source-code-after/Magento/TestModule/Test/Mftf/Metadata
        • source-code-before/Magento/TestModule/Test/Mftf/Metadata
      • metadata-type-changed
        • source-code-after/Magento/TestModule/Test/Mftf/Metadata
        • source-code-before/Magento/TestModule/Test/Mftf/Metadata
      • metadata-url-changed
        • source-code-after/Magento/TestModule/Test/Mftf/Metadata
        • source-code-before/Magento/TestModule/Test/Mftf/Metadata
      • new-module-actionGroup-added
      • new-module-data-added
        • source-code-after/Magento
        • source-code-before/Magento/TestModule/Test/Mftf/Data
      • new-module-metadata-added
        • source-code-after/Magento
        • source-code-before/Magento/TestModule/Test/Mftf/Metadata
      • new-module-page-added
        • source-code-after/Magento
        • source-code-before/Magento/TestModule/Test/Mftf/Page
      • new-module-section-added
        • source-code-after/Magento
        • source-code-before/Magento/TestModule/Test/Mftf/Section
      • new-module-suite-added
        • source-code-after/Magento
        • source-code-before/Magento/TestModule/Test/Mftf/Suite
      • new-module-test-added
        • source-code-after/Magento
        • source-code-before/Magento/TestModule/Test/Mftf/Test
      • page-added
        • source-code-after/Magento/TestModule/Test/Mftf/Page
        • source-code-before/Magento/TestModule/Test/Mftf/Page
      • page-removed
        • source-code-after/Magento/TestModule/Test/Mftf/Page
        • source-code-before/Magento/TestModule/Test/Mftf/Page
      • page-section-added
        • source-code-after/Magento/TestModule/Test/Mftf/Page
        • source-code-before/Magento/TestModule/Test/Mftf/Page
      • page-section-removed
        • source-code-after/Magento/TestModule/Test/Mftf/Page
        • source-code-before/Magento/TestModule/Test/Mftf/Page
      • section-added
        • source-code-after/Magento/TestModule/Test/Mftf/Section
        • source-code-before/Magento/TestModule/Test/Mftf/Section
      • section-element-added
        • source-code-after/Magento/TestModule/Test/Mftf/Section
        • source-code-before/Magento/TestModule/Test/Mftf/Section
      • section-element-changed
        • source-code-after/Magento/TestModule/Test/Mftf/Section
        • source-code-before/Magento/TestModule/Test/Mftf/Section
      • section-element-parameterized-added
        • source-code-after/Magento/TestModule/Test/Mftf/Section
        • source-code-before/Magento/TestModule/Test/Mftf/Section
      • section-element-parameterized-removed
        • source-code-after/Magento/TestModule/Test/Mftf/Section
        • source-code-before/Magento/TestModule/Test/Mftf/Section
      • section-element-removed
        • source-code-after/Magento/TestModule/Test/Mftf/Section
        • source-code-before/Magento/TestModule/Test/Mftf/Section
      • section-element-selector-changed
        • source-code-after/Magento/TestModule/Test/Mftf/Section
        • source-code-before/Magento/TestModule/Test/Mftf/Section
      • section-element-type-changed
        • source-code-after/Magento/TestModule/Test/Mftf/Section
        • source-code-before/Magento/TestModule/Test/Mftf/Section
      • section-removed
        • source-code-after/Magento/TestModule/Test/Mftf/Section
        • source-code-before/Magento/TestModule/Test/Mftf/Section
      • suite-added
        • source-code-after/Magento/TestModule/Test/Mftf/Suite
        • source-code-before/Magento/TestModule/Test/Mftf/Suite
      • suite-after-action-added
        • source-code-after/Magento/TestModule/Test/Mftf/Suite
        • source-code-before/Magento/TestModule/Test/Mftf/Suite
      • suite-after-action-changed
        • source-code-after/Magento/TestModule/Test/Mftf/Suite
        • source-code-before/Magento/TestModule/Test/Mftf/Suite
      • suite-after-action-group-ref-changed
        • source-code-after/Magento/TestModule/Test/Mftf/Suite
        • source-code-before/Magento/TestModule/Test/Mftf/Suite
      • suite-after-action-removed
        • source-code-after/Magento/TestModule/Test/Mftf/Suite
        • source-code-before/Magento/TestModule/Test/Mftf/Suite
      • suite-after-action-sequence-changed
        • source-code-after/Magento/TestModule/Test/Mftf/Suite
        • source-code-before/Magento/TestModule/Test/Mftf/Suite
      • suite-after-action-type-changed
        • source-code-after/Magento/TestModule/Test/Mftf/Suite
        • source-code-before/Magento/TestModule/Test/Mftf/Suite
      • suite-after-remove-action-added
        • source-code-after/Magento/TestModule/Test/Mftf/Suite
        • source-code-before/Magento/TestModule/Test/Mftf/Suite
      • suite-after-remove-action-key-changed
        • source-code-after/Magento/TestModule/Test/Mftf/Suite
        • source-code-before/Magento/TestModule/Test/Mftf/Suite
      • suite-after-remove-action-removed
        • source-code-after/Magento/TestModule/Test/Mftf/Suite
        • source-code-before/Magento/TestModule/Test/Mftf/Suite
      • suite-before-action-added
        • source-code-after/Magento/TestModule/Test/Mftf/Suite
        • source-code-before/Magento/TestModule/Test/Mftf/Suite
      • suite-before-action-changed
        • source-code-after/Magento/TestModule/Test/Mftf/Suite
        • source-code-before/Magento/TestModule/Test/Mftf/Suite
      • suite-before-action-group-ref-changed
        • source-code-after/Magento/TestModule/Test/Mftf/Suite
        • source-code-before/Magento/TestModule/Test/Mftf/Suite
      • suite-before-action-removed
        • source-code-after/Magento/TestModule/Test/Mftf/Suite
        • source-code-before/Magento/TestModule/Test/Mftf/Suite
      • suite-before-action-sequence-changed
        • source-code-after/Magento/TestModule/Test/Mftf/Suite
        • source-code-before/Magento/TestModule/Test/Mftf/Suite
      • suite-before-action-type-changed
        • source-code-after/Magento/TestModule/Test/Mftf/Suite
        • source-code-before/Magento/TestModule/Test/Mftf/Suite
      • suite-before-remove-action-added
        • source-code-after/Magento/TestModule/Test/Mftf/Suite
        • source-code-before/Magento/TestModule/Test/Mftf/Suite
      • suite-before-remove-action-key-changed
        • source-code-after/Magento/TestModule/Test/Mftf/Suite
        • source-code-before/Magento/TestModule/Test/Mftf/Suite
      • suite-before-remove-action-removed
        • source-code-after/Magento/TestModule/Test/Mftf/Suite
        • source-code-before/Magento/TestModule/Test/Mftf/Suite
      • suite-exclude-added
        • source-code-after/Magento/TestModule/Test/Mftf/Suite
        • source-code-before/Magento/TestModule/Test/Mftf/Suite
      • suite-exclude-changed
        • source-code-after/Magento/TestModule/Test/Mftf/Suite
        • source-code-before/Magento/TestModule/Test/Mftf/Suite
      • suite-exclude-removed
        • source-code-after/Magento/TestModule/Test/Mftf/Suite
        • source-code-before/Magento/TestModule/Test/Mftf/Suite
      • suite-include-added
        • source-code-after/Magento/TestModule/Test/Mftf/Suite
        • source-code-before/Magento/TestModule/Test/Mftf/Suite
      • suite-include-changed
        • source-code-after/Magento/TestModule/Test/Mftf/Suite
        • source-code-before/Magento/TestModule/Test/Mftf/Suite
      • suite-include-removed
        • source-code-after/Magento/TestModule/Test/Mftf/Suite
        • source-code-before/Magento/TestModule/Test/Mftf/Suite
      • suite-removed
        • source-code-after/Magento/TestModule/Test/Mftf/Suite
        • source-code-before/Magento/TestModule/Test/Mftf/Suite
      • test-action-added
        • source-code-after/Magento/TestModule/Test/Mftf/Test
        • source-code-before/Magento/TestModule/Test/Mftf/Test
      • test-action-changed
        • source-code-after/Magento/TestModule/Test/Mftf/Test
        • source-code-before/Magento/TestModule/Test/Mftf/Test
      • test-action-group-ref-changed
        • source-code-after/Magento/TestModule/Test/Mftf/Test
        • source-code-before/Magento/TestModule/Test/Mftf/Test
      • test-action-removed
        • source-code-after/Magento/TestModule/Test/Mftf/Test
        • source-code-before/Magento/TestModule/Test/Mftf/Test
      • test-action-sequence-changed
        • source-code-after/Magento/TestModule/Test/Mftf/Test
        • source-code-before/Magento/TestModule/Test/Mftf/Test
      • test-action-type-changed
        • source-code-after/Magento/TestModule/Test/Mftf/Test
        • source-code-before/Magento/TestModule/Test/Mftf/Test
      • test-added
        • source-code-after/Magento/TestModule/Test/Mftf/Test
        • source-code-before/Magento/TestModule/Test/Mftf/Test
      • test-after-action-added
        • source-code-after/Magento/TestModule/Test/Mftf/Test
        • source-code-before/Magento/TestModule/Test/Mftf/Test
      • test-after-action-removed
        • source-code-after/Magento/TestModule/Test/Mftf/Test
        • source-code-before/Magento/TestModule/Test/Mftf/Test
      • test-after-action-sequence-changed
        • source-code-after/Magento/TestModule/Test/Mftf/Test
        • source-code-before/Magento/TestModule/Test/Mftf/Test
      • test-annotation-changed
        • source-code-after/Magento/TestModule/Test/Mftf/Test
        • source-code-before/Magento/TestModule/Test/Mftf/Test
      • test-before-action-added
        • source-code-after/Magento/TestModule/Test/Mftf/Test
        • source-code-before/Magento/TestModule/Test/Mftf/Test
      • test-before-action-removed
        • source-code-after/Magento/TestModule/Test/Mftf/Test
        • source-code-before/Magento/TestModule/Test/Mftf/Test
      • test-before-action-sequence-changed
        • source-code-after/Magento/TestModule/Test/Mftf/Test
        • source-code-before/Magento/TestModule/Test/Mftf/Test
      • test-group-removed
        • source-code-after/Magento/TestModule/Test/Mftf/Test
        • source-code-before/Magento/TestModule/Test/Mftf/Test
      • test-remove-action-added
        • source-code-after/Magento/TestModule/Test/Mftf/Test
        • source-code-before/Magento/TestModule/Test/Mftf/Test
      • test-remove-action-key-changed
        • source-code-after/Magento/TestModule/Test/Mftf/Test
        • source-code-before/Magento/TestModule/Test/Mftf/Test
      • test-remove-action-removed
        • source-code-after/Magento/TestModule/Test/Mftf/Test
        • source-code-before/Magento/TestModule/Test/Mftf/Test
      • test-removed
        • source-code-after/Magento/TestModule/Test/Mftf/Test
        • source-code-before/Magento/TestModule/Test/Mftf/Test

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

207 files changed

+5
-6
lines changed

bin/svc

+4-5
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,10 @@ if (PHP_SAPI !== 'cli') {
2222

2323
try {
2424
$composerContents = json_decode(file_get_contents(__DIR__ . '/../composer.json'), true);
25-
$version = $composerContents['version'] ?? '';
26-
$name = $composerContents['description'] ?? 'Magento Semantic Version Checker';
27-
$application = new Symfony\Component\Console\Application();
28-
$application->setName($name);
29-
$application->setVersion($version);
25+
$application = new Symfony\Component\Console\Application(
26+
$composerContents['description'],
27+
$composerContents['version']
28+
);
3029
$application->add(new CompareSourceCommand());
3130
$application->run();
3231
} catch (\Exception $e) {

tests/Unit/Console/Command/CompareSourceCommandMftfTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ protected function executeCommand($pathToSourceCodeBefore, $pathToSourceCodeAfte
7272
'source-after' => $pathToSourceCodeAfter,
7373
'--log-output-location' => $this->svcLogPath,
7474
'--include-patterns' => __DIR__ . '/CompareSourceCommandTest/_files/application_includes.txt',
75-
'--mftf' => true,
75+
'--report-type' => ['mftf'],
7676
]
7777
);
7878
return $commandTester;

0 commit comments

Comments
 (0)