diff --git a/composer.json b/composer.json index d4ef8bb..81c73d7 100644 --- a/composer.json +++ b/composer.json @@ -16,9 +16,9 @@ "source": "https://github.com/allure-framework/allure-codeception" }, "require": { - "php": ">=5.4.0", + "php": ">=5.6", "codeception/codeception": "^2.3|^3.0", - "allure-framework/allure-php-api": "~1.1.0", + "allure-framework/allure-php-api": "~1.1.7", "symfony/filesystem": ">=2.6", "symfony/finder": ">=2.6" }, diff --git a/src/Yandex/Allure/Codeception/AllureCodeception.php b/src/Yandex/Allure/Codeception/AllureCodeception.php index 51a23a2..4a8adc4 100644 --- a/src/Yandex/Allure/Codeception/AllureCodeception.php +++ b/src/Yandex/Allure/Codeception/AllureCodeception.php @@ -261,7 +261,12 @@ public function testStart(TestEvent $testEvent) $testName = $this->buildTestName($test); $event = new TestCaseStartedEvent($this->uuid, $testName); if ($test instanceof Cest) { + $methodName = $test->getName(); $className = get_class($test->getTestClass()); + $event->setLabels(array_merge($event->getLabels(), [ + new Label("testMethod", $methodName), + new Label("testClass", $className) + ])); $annotations = []; if (class_exists($className, false)) { $annotations = array_merge($annotations, Annotation\AnnotationProvider::getClassAnnotations($className));