Skip to content

Commit 81414c8

Browse files
committed
MQE-1541: Add option to generate:tests for XSD validation on 'merged files'
1 parent eb83bc5 commit 81414c8

File tree

9 files changed

+12
-12
lines changed

9 files changed

+12
-12
lines changed

dev/tests/_bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
true,
3333
\Magento\FunctionalTestingFramework\Config\MftfApplicationConfig::UNIT_TEST_PHASE,
3434
true,
35-
\Magento\FunctionalTestingFramework\Config\MftfApplicationConfig::DEBUG_NONE
35+
\Magento\FunctionalTestingFramework\Config\MftfApplicationConfig::LEVEL_NONE
3636
);
3737

3838
// Load needed framework env params

dev/tests/functional/tests/MFTF/DevDocs/Test/DevDocsTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
</annotations>
2020

2121
<amOnPage stepKey="openMFTFDevDocPage" url="{{MFTFDocPage.url}}" />
22-
<see stepKey="verifyPageIntroText" selector="{{contentSection.pageIntro}}" userInput="Introduction to the Magento Functional Testing Framework" />
22+
<see stepKey="verifyPageIntroText" selector="{{contentSection.pageIntro}}" userInput="Introduction to the Magento Functional Testing Framework" skipReadiness=""/>
2323
</test>
2424
</tests>

src/Magento/FunctionalTestingFramework/Config/MftfApplicationConfig.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ class MftfApplicationConfig
1919
*/
2020
const LEVEL_DEFAULT = "default";
2121
const LEVEL_DEVELOPER = "developer";
22-
const DEBUG_NONE = "none";
23-
const MFTF_DEBUG_LEVEL = [self::LEVEL_DEFAULT, self::LEVEL_DEVELOPER, self::DEBUG_NONE];
22+
const LEVEL_NONE = "none";
23+
const MFTF_DEBUG_LEVEL = [self::LEVEL_DEFAULT, self::LEVEL_DEVELOPER, self::LEVEL_NONE];
2424

2525
/**
2626
* Determines whether the user has specified a force option for generation
@@ -70,7 +70,7 @@ private function __construct(
7070
$forceGenerate = false,
7171
$phase = self::EXECUTION_PHASE,
7272
$verboseEnabled = null,
73-
$debugLevel = self::DEBUG_NONE
73+
$debugLevel = self::LEVEL_NONE
7474
) {
7575
$this->forceGenerate = $forceGenerate;
7676

@@ -83,7 +83,7 @@ private function __construct(
8383
switch ($debugLevel) {
8484
case self::LEVEL_DEVELOPER:
8585
case self::LEVEL_DEFAULT:
86-
case self::DEBUG_NONE:
86+
case self::LEVEL_NONE:
8787
$this->debugLevel = $debugLevel;
8888
break;
8989
default:

src/Magento/FunctionalTestingFramework/Console/GenerateDocsCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
6767
$force,
6868
MftfApplicationConfig::GENERATION_PHASE,
6969
false,
70-
MftfApplicationConfig::DEBUG_NONE
70+
MftfApplicationConfig::LEVEL_NONE
7171
);
7272

7373
$allActionGroups = ActionGroupObjectHandler::getInstance()->getAllObjects();

src/Magento/FunctionalTestingFramework/Console/GenerateTestsCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
9797
// Remove previous GENERATED_DIR if --remove option is used
9898
if ($remove) {
9999
$this->removeGeneratedDirectory($output, $verbose ||
100-
($debug !== MftfApplicationConfig::DEBUG_NONE));
100+
($debug !== MftfApplicationConfig::LEVEL_NONE));
101101
}
102102

103103
$testConfiguration = $this->createTestConfiguration($json, $tests, $force, $debug, $verbose);

src/Magento/FunctionalTestingFramework/Console/RunTestCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
7575
]),
7676
'--force' => $force,
7777
'--remove' => $remove,
78-
'--debug' => MftfApplicationConfig::DEBUG_NONE
78+
'--debug' => MftfApplicationConfig::LEVEL_NONE
7979
];
8080
$command->run(new ArrayInput($args), $output);
8181
}

src/Magento/FunctionalTestingFramework/Console/RunTestFailedCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
7272
false,
7373
MftfApplicationConfig::GENERATION_PHASE,
7474
false,
75-
MftfApplicationConfig::DEBUG_NONE
75+
MftfApplicationConfig::LEVEL_NONE
7676
);
7777

7878
$testConfiguration = $this->getFailedTestList();

src/Magento/FunctionalTestingFramework/Console/RunTestGroupCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
7777
$force,
7878
MftfApplicationConfig::GENERATION_PHASE,
7979
false,
80-
MftfApplicationConfig::DEBUG_NONE
80+
MftfApplicationConfig::LEVEL_NONE
8181
);
8282

8383
if (!$skipGeneration) {

src/Magento/FunctionalTestingFramework/StaticCheck/TestDependencyCheck.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function execute(InputInterface $input)
7575
true,
7676
MftfApplicationConfig::UNIT_TEST_PHASE,
7777
false,
78-
MftfApplicationConfig::DEBUG_NONE
78+
MftfApplicationConfig::LEVEL_NONE
7979
);
8080

8181
ModuleResolver::getInstance()->getModulesPath();

0 commit comments

Comments
 (0)