Skip to content
New issue

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

Values from data provider are not shown for slow test #553

Open
mvorisek opened this issue May 5, 2024 · 0 comments · May be fixed by #559
Open

Values from data provider are not shown for slow test #553

mvorisek opened this issue May 5, 2024 · 0 comments · May be fixed by #559

Comments

@mvorisek
Copy link
Contributor

mvorisek commented May 5, 2024

Steps required to reproduce the problem

Basically the same as sebastianbergmann/phpunit#5616 but for this extension. Something like sebastianbergmann/phpunit@5d04989#diff-0185eeda9f2d10b7587e9a551c2658419c534b49fa2a6dfe0dc0a72d294557ceR522 is needed.

I would expected the data provider values to be shown the same way as phpunit list failed tests. This is actually working for PHPUnit 9.x and lower already.

Expected Result

(from phpunit 9.x)

Detected 4 tests where the duration exceeded the maximum duration.

1. 6.049 (0.500) Atk4\Data\Tests\ConditionSqlTest::testLikeCondition with data set #1 ('binary', true)
2. 6.041 (0.500) Atk4\Data\Tests\ConditionSqlTest::testLikeCondition with data set #2 ('text', false)
3. 5.897 (0.500) Atk4\Data\Tests\ConditionSqlTest::testLikeCondition with data set #3 ('blob', true)
4. 5.861 (0.500) Atk4\Data\Tests\ConditionSqlTest::testLikeCondition with data set #0 ('string', false)

Actual Result

(from phpunit 11.x, ignore different tests listed)

Detected 5 tests where the duration exceeded the maximum duration.

1. 3.128 (0.500) Atk4\Data\Tests\ScopeTest::testConditionOnReferencedRecords
2. 0.999 (0.500) Atk4\Data\Tests\ConditionSqlTest::testRegexpCondition#0
3. 0.968 (0.500) Atk4\Data\Tests\ConditionSqlTest::testRegexpCondition#3
4. 0.967 (0.500) Atk4\Data\Tests\ConditionSqlTest::testRegexpCondition#2
5. 0.953 (0.500) Atk4\Data\Tests\ConditionSqlTest::testRegexpCondition#1
@mvorisek mvorisek linked a pull request May 14, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant