File tree Expand file tree Collapse file tree 4 files changed +20
-8
lines changed
dev/tests/verification/Resources
src/Magento/FunctionalTestingFramework/Suite/views Expand file tree Collapse file tree 4 files changed +20
-8
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ class ActionsInDifferentModulesSuite extends \Codeception\GroupObject
3636
3737 public function _before(\Codeception\Event\TestEvent $e)
3838 {
39- $this->testCount = $this->getTestCount();
4039 $this->webDriver = $this->getModule('\Magento\FunctionalTestingFramework\Module\MagentoWebDriver');
4140 $this->moduleContainer = $this->webDriver->getModuleContainer();
4241 // increment test count per execution
@@ -52,6 +51,8 @@ class ActionsInDifferentModulesSuite extends \Codeception\GroupObject
5251 private function executePreConditions()
5352 {
5453 if ($this->currentTestRun == 1) {
54+ $this->testCount = $this->getTestCount();
55+
5556 print sprintf(self::$HOOK_EXECUTION_INIT, "before");
5657
5758 try {
@@ -233,7 +234,9 @@ class ActionsInDifferentModulesSuite extends \Codeception\GroupObject
233234
234235 $files = glob($pathToGroupCests);
235236 if (is_array($files)) {
236- return count($files);
237+ $qty = count($files);
238+ print('In a group "' . self::$group . '" suite executor found ' . $qty . ' tests.' . PHP_EOL);
239+ return $qty;
237240 }
238241
239242 return $this->testCount;
Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ class functionalSuiteHooks extends \Codeception\GroupObject
3636
3737 public function _before(\Codeception\Event\TestEvent $e)
3838 {
39- $this->testCount = $this->getTestCount();
4039 $this->webDriver = $this->getModule('\Magento\FunctionalTestingFramework\Module\MagentoWebDriver');
4140 $this->moduleContainer = $this->webDriver->getModuleContainer();
4241 // increment test count per execution
@@ -52,6 +51,8 @@ class functionalSuiteHooks extends \Codeception\GroupObject
5251 private function executePreConditions()
5352 {
5453 if ($this->currentTestRun == 1) {
54+ $this->testCount = $this->getTestCount();
55+
5556 print sprintf(self::$HOOK_EXECUTION_INIT, "before");
5657
5758 try {
@@ -216,7 +217,9 @@ class functionalSuiteHooks extends \Codeception\GroupObject
216217
217218 $files = glob($pathToGroupCests);
218219 if (is_array($files)) {
219- return count($files);
220+ $qty = count($files);
221+ print('In a group "' . self::$group . '" suite executor found ' . $qty . ' tests.' . PHP_EOL);
222+ return $qty;
220223 }
221224
222225 return $this->testCount;
Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ class functionalSuiteWithComments extends \Codeception\GroupObject
3636
3737 public function _before(\Codeception\Event\TestEvent $e)
3838 {
39- $this->testCount = $this->getTestCount();
4039 $this->webDriver = $this->getModule('\Magento\FunctionalTestingFramework\Module\MagentoWebDriver');
4140 $this->moduleContainer = $this->webDriver->getModuleContainer();
4241 // increment test count per execution
@@ -52,6 +51,8 @@ class functionalSuiteWithComments extends \Codeception\GroupObject
5251 private function executePreConditions()
5352 {
5453 if ($this->currentTestRun == 1) {
54+ $this->testCount = $this->getTestCount();
55+
5556 print sprintf(self::$HOOK_EXECUTION_INIT, "before");
5657
5758 try {
@@ -196,7 +197,9 @@ class functionalSuiteWithComments extends \Codeception\GroupObject
196197
197198 $files = glob($pathToGroupCests);
198199 if (is_array($files)) {
199- return count($files);
200+ $qty = count($files);
201+ print('In a group "' . self::$group . '" suite executor found ' . $qty . ' tests.' . PHP_EOL);
202+ return $qty;
200203 }
201204
202205 return $this->testCount;
Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ class {{suiteName}} extends \Codeception\GroupObject
4343 { {#before} }
4444 public function _before(\Codeception\Event\TestEvent $e)
4545 {
46- $this -> testCount = $this -> getTestCount ();
4746 $this -> webDriver = $this -> getModule (' \M agento\F unctionalTestingFramework\M odule\M agentoWebDriver' );
4847 $this -> moduleContainer = $this -> webDriver -> getModuleContainer ();
4948 {{#helpers} }
@@ -66,6 +65,8 @@ class {{suiteName}} extends \Codeception\GroupObject
6665 private function executePreConditions()
6766 {
6867 if ($this -> currentTestRun == 1) {
68+ $this -> testCount = $this -> getTestCount ();
69+
6970 print sprintf(self::$HOOK_EXECUTION_INIT , " before" );
7071
7172 try {
@@ -189,7 +190,9 @@ class {{suiteName}} extends \Codeception\GroupObject
189190
190191 $files = glob($pathToGroupCests);
191192 if (is_array($files)) {
192- return count($files );
193+ $qty = count($files );
194+ print(' In a group "' . self::$group . ' " suite executor found ' . $qty . ' tests.' . PHP_EOL);
195+ return $qty ;
193196 }
194197
195198 return $this->testCount;
You can’t perform that action at this time.
0 commit comments