Skip to content

Commit 5c26dd7

Browse files
committed
MQE-1703: Implicit Suite Generation for Tests
fixing unit tests
1 parent fa579d1 commit 5c26dd7

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

src/Magento/FunctionalTestingFramework/Console/RunTestCommand.php

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,22 +89,22 @@ protected function execute(InputInterface $input, OutputInterface $output): int
8989
// run tests not referenced in suites
9090
$this->runTests($testConfigArray['tests'], $output);
9191

92-
// run tests in suites
92+
// run tests referenced in suites
9393
$this->runTestsInSuite($testConfigArray['suites'], $output);
9494

9595
return $this->returnCode;
96-
9796
}
9897

9998
/**
10099
* Run tests not referenced in suites
101-
* @param array $testsConfig
100+
*
101+
* @param $testsConfig
102102
* @param OutputInterface $output
103+
* @return void
103104
* @throws TestFrameworkException
104105
*/
105-
private function runTests($testsConfig, OutputInterface $output) {
106-
107-
106+
private function runTests($testsConfig, OutputInterface $output)
107+
{
108108
$tests = $testsConfig ?? [];
109109
$codeceptionCommand = realpath(PROJECT_ROOT . '/vendor/bin/codecept') . ' run functional ';
110110
$testsDirectory = TESTS_MODULE_PATH .
@@ -135,11 +135,13 @@ private function runTests($testsConfig, OutputInterface $output) {
135135

136136
/**
137137
* Run tests referenced in suites within suites' context.
138-
* @param array $suitesConfig
138+
*
139+
* @param $suitesConfig
139140
* @param OutputInterface $output
141+
* @return void
140142
*/
141-
private function runTestsInSuite($suitesConfig, OutputInterface $output) {
142-
143+
private function runTestsInSuite($suitesConfig, OutputInterface $output)
144+
{
143145
$suites = $suitesConfig ?? [];
144146
$codeceptionCommand = realpath(PROJECT_ROOT . '/vendor/bin/codecept') . ' run functional --verbose --steps ';
145147
$testGroups = array_keys($suites);

0 commit comments

Comments
 (0)