File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ public function __construct(private $extension)
78
78
79
79
public function notify (TestStartedEvent $ event ): void
80
80
{
81
- $ this ->extension ->executeBeforeTest ();
81
+ $ this ->extension ->executeBeforeTest ($ event -> test ()-> name () );
82
82
}
83
83
});
84
84
@@ -89,7 +89,7 @@ public function __construct(private $extension)
89
89
90
90
public function notify (TestFinishedEvent $ event ): void
91
91
{
92
- $ this ->extension ->executeAfterTest ();
92
+ $ this ->extension ->executeAfterTest ($ event -> test ()-> name (), ( float ) $ event -> telemetryInfo ()-> time ()-> seconds () );
93
93
}
94
94
});
95
95
@@ -100,7 +100,7 @@ public function __construct(private $extension)
100
100
101
101
public function notify (Errored $ event ): void
102
102
{
103
- $ this ->extension ->executeAfterTestError ();
103
+ $ this ->extension ->executeAfterTestError ($ event -> test ()-> name (), $ event -> throwable ()-> message (), ( float ) $ event -> telemetryInfo ()-> time ()-> seconds () );
104
104
}
105
105
});
106
106
@@ -111,7 +111,7 @@ public function __construct(private $extension)
111
111
112
112
public function notify (Failed $ event ): void
113
113
{
114
- $ this ->extension ->executeAfterTestFailure ();
114
+ $ this ->extension ->executeAfterTestFailure ($ event -> test ()-> name (), $ event -> throwable ()-> message (), ( float ) $ event -> telemetryInfo ()-> time ()-> seconds () );
115
115
}
116
116
});
117
117
}
You can’t perform that action at this time.
0 commit comments