6
6
namespace Magento \FunctionalTestingFramework \Allure \Adapter ;
7
7
8
8
use Yandex \Allure \Adapter \AllureAdapter ;
9
- use Yandex \Allure \Adapter \Annotation ;
10
- use Yandex \Allure \Adapter \Event \TestSuiteEvent ;
11
- use Yandex \Allure \Adapter \Event \TestSuiteStartedEvent ;
12
9
use Codeception \Event \SuiteEvent ;
13
10
14
11
/**
21
18
22
19
class MagentoAllureAdapter extends AllureAdapter
23
20
{
24
- private $ uuid ;
25
-
26
21
/**
27
22
* Variable name used for extracting group argument to codecept run commaned
28
23
*
@@ -72,8 +67,6 @@ public function suiteBefore(SuiteEvent $suiteEvent)
72
67
$ suite = $ suiteEvent ->getSuite ();
73
68
$ group = implode (". " , $ this ->groups );
74
69
$ suiteName = ($ suite ->getName ())."- {$ group }" ;
75
- //cant access protected property of suiteEvent
76
- //$suiteEvent->suite['name'] = $suiteName;
77
70
78
71
call_user_func (\Closure::bind (
79
72
function () use ($ suite , $ suiteName ) {
@@ -92,30 +85,6 @@ function () use ($suite, $suiteName) {
92
85
93
86
// call parent function
94
87
parent ::suiteBefore ($ changeSuiteEvent );
95
- //
96
- // $event = new TestSuiteStartedEvent($suiteName);
97
- // if (class_exists($suiteName, false)) {
98
- // $annotationManager = new Annotation\AnnotationManager(
99
- // Annotation\AnnotationProvider::getClassAnnotations($suiteName)
100
- // );
101
- // $annotationManager->updateTestSuiteEvent($event);
102
- // }
103
- //
104
- //// $uuid = "";
105
- // $uuid = call_user_func(\Closure::bind(
106
- // function () use ($uuid, $event) {
107
- // return $this->uuid;
108
- // },
109
- // null,
110
- // $this
111
- // ));
112
- //// $this->uuid = $uuid;
113
- //
114
- // $this->uuid = $event->getUuid();
115
- //
116
- //
117
- // $this->getLifecycle()->fire($event);
118
- // // unset($event);
119
88
}
120
89
121
90
0 commit comments