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

[Core] Support custom UUID generators in test runners #2926

Merged
merged 8 commits into from
Sep 26, 2024

Conversation

mpkorstanje
Copy link
Contributor

🤔 What's changed?

Made it possible to actually use the custom UUID generators in test runners

⚡️ What's your motivation?

With #2703 a faster UUID generator was introduced. And while the
configuration options were added, they were not actually used by
cucumber-junit, cucumber-junit-platform-engine and
cucumber-testng.

🏷️ What kind of change is this?

  • 🐛 Bug fix (non-breaking change which fixes a defect)

📋 Checklist:

  • I agree to respect and uphold the Cucumber Community Code of Conduct
  • I've changed the behaviour of the code
    • I have added/updated tests to cover my changes.
  • My change requires a change to the documentation.
    • I have updated the documentation accordingly.
  • Users should know about my change
    • I have added an entry to the "Unreleased" section of the CHANGELOG, linking to this pull request.

@mpkorstanje mpkorstanje force-pushed the fix-uuid-generator-option branch from 2caea1f to f580b71 Compare September 21, 2024 11:25
With #2703 a faster UUID generator was introduced. And while the
configuration options were added, they were not actually used by
`cucumber-junit`, `cucumber-junit-platform-engine` and
`cucumber-testng`.
@mpkorstanje mpkorstanje force-pushed the fix-uuid-generator-option branch from f580b71 to 0295af0 Compare September 21, 2024 11:27
Copy link
Contributor

@jkronegg jkronegg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are other calls to UUID.randomUUID() in the code, e.g io.cucumber.junit.platform.engine.FeatureResolver or io.cucumber.core.runner.CoreHookDefinition (the call in the create() method consumes about 1.2% of the total time on by usual test project).

Should this PR only be related to UUID generators used in test runners, or in the whole Cucumber framework ? (based on the title, I assume it's only in test runners, but having it for the whole framework could be also desirable)

@mpkorstanje
Copy link
Contributor Author

Ooh good one. I'll check it out.

@mpkorstanje mpkorstanje merged commit 8029e93 into main Sep 26, 2024
6 checks passed
@mpkorstanje mpkorstanje deleted the fix-uuid-generator-option branch September 26, 2024 13:10
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 this pull request may close these issues.

2 participants