From a6156aef942a4e4de0add34a73d066a9458cefc6 Mon Sep 17 00:00:00 2001 From: "g.dolgushin" <40915075+DolgushinG@users.noreply.github.com> Date: Fri, 4 Jun 2021 16:24:36 +0300 Subject: [PATCH] fix wrong test names for gherkin tests (via #72) --- src/Yandex/Allure/Codeception/AllureCodeception.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Yandex/Allure/Codeception/AllureCodeception.php b/src/Yandex/Allure/Codeception/AllureCodeception.php index 4d57e07..0c758c4 100644 --- a/src/Yandex/Allure/Codeception/AllureCodeception.php +++ b/src/Yandex/Allure/Codeception/AllureCodeception.php @@ -252,7 +252,7 @@ private function buildTestName($test) { $testName .= ' with data set #' . $this->testInvocations[$testFullName]; } } else if($test instanceof Gherkin) { - $testName = $test->getFeatureNode()->getTitle(); + $testName = $test->getScenarioNode()->getTitle(); } return $testName; }