Skip to content

Commit 1dbcef8

Browse files
esteban-serfebaev
authored andcommitted
issue tag support and human readable steps content (via #33)
1 parent 5088ee4 commit 1dbcef8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Yandex/Allure/Adapter/AllureAdapter.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ public function testEnd()
312312

313313
public function stepBefore(StepEvent $stepEvent)
314314
{
315-
$stepAction = $stepEvent->getStep()->getAction();
315+
$stepAction = $stepEvent->getStep()->__toString();
316316
$this->getLifecycle()->fire(new StepStartedEvent($stepAction));
317317
}
318318

@@ -358,7 +358,6 @@ private function getCeptAnnotations($test)
358358
foreach($lines as $line) {
359359
$output = [];
360360
if (preg_match('/\*\s\@(.*)\((.*)\)/', $line, $output) > 0) {
361-
\Codeception\Util\Debug::debug($output);
362361
if ($output[1] == "Features") {
363362
$feature = new \Yandex\Allure\Adapter\Annotation\Features();
364363
$features = $this->splitAnnotationContent($output[2]);
@@ -385,9 +384,9 @@ private function getCeptAnnotations($test)
385384
$annotations[get_class($story)] = $story;
386385
} else if ($output[1] == 'Issues') {
387386
$issues = $this->splitAnnotationContent($output[2]);
388-
$issue = new \Yandex\Allure\Adapter\Annotation\Stories();
387+
$issue = new \Yandex\Allure\Adapter\Annotation\Issues();
389388
foreach($issues as $issueName) {
390-
$issues->issuesKeys[] = $issueName;
389+
$issue->issueKeys[] = $issueName;
391390
}
392391
$annotations[get_class($issue)] = $issue;
393392
} else {

0 commit comments

Comments
 (0)