Title: Attributes are not read from test methods with data providers · Issue #98 · allure-framework/allure-phpunit · GitHub
Open Graph Title: Attributes are not read from test methods with data providers · Issue #98 · allure-framework/allure-phpunit
X Title: Attributes are not read from test methods with data providers · Issue #98 · allure-framework/allure-phpunit
Description: Describe the bug When test method has data provider, test has "Unknown test" name and no dataset in the report. To Reproduce Write following test: use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Qameta\...
Open Graph Description: Describe the bug When test method has data provider, test has "Unknown test" name and no dataset in the report. To Reproduce Write following test: use PHPUnit\Framework\Attributes\DataProvider; use...
X Description: Describe the bug When test method has data provider, test has "Unknown test" name and no dataset in the report. To Reproduce Write following test: use PHPUnit\Framework\Attributes\DataPro...
Opengraph URL: https://github.com/allure-framework/allure-phpunit/issues/98
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Attributes are not read from test methods with data providers","articleBody":"**Describe the bug**\r\nWhen test method has data provider, test has \"Unknown test\" name and no dataset in the report.\r\n\r\n**To Reproduce**\r\nWrite following test:\r\n```php\r\nuse PHPUnit\\Framework\\Attributes\\DataProvider;\r\nuse PHPUnit\\Framework\\TestCase;\r\nuse Qameta\\Allure\\Attribute\\DisplayName;\r\n\r\nclass MyTest extends TestCase {\r\n #[DataProvider('providerMy'), DisplayName('My test')]\r\n public function testMy(int $x, int $y): void\r\n {\r\n self::assertSame($x, $y);\r\n }\r\n\r\n public static function providerMy(): iterable\r\n {\r\n return [\r\n \"My data set\" => [1, 1],\r\n ];\r\n }\r\n}\r\n```\r\nThis test will be named as \"Unknown test\" and without dataset in the report.\r\n\r\n**Expected behavior**\r\nThis test should be named as \"My test\" with dataset \"My data set\" in the report.\r\n\r\n**Additional context**\r\nProblem occurs with v3.0.0.\r\n","author":{"url":"https://github.com/remorhaz","@type":"Person","name":"remorhaz"},"datePublished":"2023-11-10T14:02:53Z","url":"https://github.com/allure-framework/allure-phpunit/issues/98"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4303d5cc-9164-61b9-1a0a-5015b61e0925 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D340:23D291:185FE1:21CD55:6AFD5F50 |
| html-safe-nonce | 6f459279a17295b6b9db46bc6f99cbf52aaf891cf70a8a148be9a39d72a83ff2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzQwOjIzRDI5MToxODVGRTE6MjFDRDU1OjZBRkQ1RjUwIiwidmlzaXRvcl9pZCI6IjkwNjA2OTYwMDc2NzAzMjUwNzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f47987af0a025ca79328038b29edc8d2aacc9647e0923dd47c3f76af71c3df25 |
| hovercard-subject-tag | issue:1987689269 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/allure-framework/allure-phpunit/98/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ab4dc9b19ed4a862c44f2865a9accad4de792ddc08cd0277ba4ecb147df01f3c/allure-framework/allure-phpunit/issues/98 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ab4dc9b19ed4a862c44f2865a9accad4de792ddc08cd0277ba4ecb147df01f3c/allure-framework/allure-phpunit/issues/98 |
| og:image:alt | Describe the bug When test method has data provider, test has "Unknown test" name and no dataset in the report. To Reproduce Write following test: use PHPUnit\Framework\Attributes\DataProvider; use... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | remorhaz |
| hostname | github.com |
| expected-hostname | github.com |
| None | 66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e |
| turbo-cache-control | no-preview |
| go-import | github.com/allure-framework/allure-phpunit git https://github.com/allure-framework/allure-phpunit.git |
| octolytics-dimension-user_id | 5879127 |
| octolytics-dimension-user_login | allure-framework |
| octolytics-dimension-repository_id | 19211209 |
| octolytics-dimension-repository_nwo | allure-framework/allure-phpunit |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 19211209 |
| octolytics-dimension-repository_network_root_nwo | allure-framework/allure-phpunit |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b6f01f7cb9f35f8c09949773241a3d49dd04b340 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width