Skip to content

Fix discovery of @maximumDuration annotation when using data providers#675

Merged
localheinz merged 1 commit intoergebnis:mainfrom
morgan-atproperties:fix-generated-tests
Apr 11, 2025
Merged

Fix discovery of @maximumDuration annotation when using data providers#675
localheinz merged 1 commit intoergebnis:mainfrom
morgan-atproperties:fix-generated-tests

Conversation

@morgan-atproperties
Copy link
Contributor

@morgan-atproperties morgan-atproperties commented Mar 31, 2025

Currently, the maximumDuration annotation does not work when a test uses a PHPUnit data provider. This PR fixes discovery of the maximumDuration annotation .

Fixes #677.

@morgan-atproperties morgan-atproperties changed the title [WIP] Fix maximumDuration annotation when using a data provider =Fix maximumDuration annotation when using a data provider Mar 31, 2025
@morgan-atproperties morgan-atproperties changed the title =Fix maximumDuration annotation when using a data provider Fix maximumDuration annotation when using a data provider Mar 31, 2025
@morgan-atproperties
Copy link
Contributor Author

Hi there! This is ready for review.

@morgan-atproperties
Copy link
Contributor Author

@localheinz could you grant me permission to launch the actions? I'd love to see how this runs on all versions. Thanks!

@codecov
Copy link

codecov bot commented Apr 10, 2025

Codecov Report

Attention: Patch coverage is 0% with 11 lines in your changes missing coverage. Please review.

Project coverage is 57.86%. Comparing base (602a18a) to head (c3c5592).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
src/Extension.php 0.00% 11 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #675      +/-   ##
============================================
- Coverage     58.77%   57.86%   -0.91%     
  Complexity      135      135              
============================================
  Files            33       33              
  Lines           701      712      +11     
============================================
  Hits            412      412              
- Misses          289      300      +11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@localheinz localheinz added the bug label Apr 10, 2025
@morgan-atproperties
Copy link
Contributor Author

Thanks @localheinz ! I'll look into the failing checks.

@morgan-atproperties
Copy link
Contributor Author

@localheinz I ran php-cs-fixer, which should fix most of the issues. I'm not sure what to do about the code coverage alert, since it's a one line change.

@localheinz localheinz force-pushed the fix-generated-tests branch from 3f73f72 to 0311b05 Compare April 11, 2025 07:54
@localheinz localheinz changed the title Fix maximumDuration annotation when using a data provider Fix discovery of @maximumDuration annotation when using data providers Apr 11, 2025
localheinz
localheinz previously approved these changes Apr 11, 2025
localheinz
localheinz previously approved these changes Apr 11, 2025
@localheinz localheinz force-pushed the fix-generated-tests branch 4 times, most recently from a3e8474 to cad955a Compare April 11, 2025 09:07
@localheinz localheinz force-pushed the fix-generated-tests branch from cad955a to c3c5592 Compare April 11, 2025 09:12
@localheinz localheinz merged commit 8d3e14b into ergebnis:main Apr 11, 2025
73 of 75 checks passed
@localheinz
Copy link
Member

Thank you, @morgan-atproperties!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MaximumDuration annotation does not work when using a data provider

2 participants