We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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\Allure\Attribute\DisplayName; class MyTest extends TestCase { #[DataProvider('providerMy'), DisplayName('My test')] public function testMy(int $x, int $y): void { self::assertSame($x, $y); } public static function providerMy(): iterable { return [ "My data set" => [1, 1], ]; } }
This test will be named as "Unknown test" and without dataset in the report.
Expected behavior This test should be named as "My test" with dataset "My data set" in the report.
Additional context Problem occurs with v3.0.0.
The text was updated successfully, but these errors were encountered:
test method is correctly detectied with data provider (fixes allure-f…
2ca2c14
…ramework#98)
1eab991
test method is correctly detectied with data provider (fixes #98, via #…
1b800cd
…99)
Successfully merging a pull request may close this issue.
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:
This test will be named as "Unknown test" and without dataset in the report.
Expected behavior
This test should be named as "My test" with dataset "My data set" in the report.
Additional context
Problem occurs with v3.0.0.
The text was updated successfully, but these errors were encountered: