Skip to content

Conversation

@mpkorstanje
Copy link
Contributor

@mpkorstanje mpkorstanje commented Oct 15, 2025

⚡️ What's your motivation?

When cucumber.glue is not configured Cucumber scans the entire classpath for glue. This "just works". However, when scanning encounters a class with missing dependencies Cucumber log complain quite loudly about this.

The assumption was that this scenario would be quite rare, and it was until IDEA (intentionally and on request) stopped setting cucumber.glue. Now it is no longer a rare occurrence.

Fixes: #3093

🏷️ 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.

When `cucumber.glue` is not configured Cucumber scans the entire
classpath for glue. This "just works". However, when scanning encounters
a class with missing dependencies Cucumber log complain quite loudly
about this.

The assumption was that this scenario would be quite rare, and it was
until IDEA (intentionally and on request) stopped setting
`cucumber.glue`. Now it is no longer a rare occurance.
@mpkorstanje mpkorstanje marked this pull request as ready for review October 15, 2025 16:39
@mpkorstanje mpkorstanje merged commit 0efa6bc into main Oct 15, 2025
6 checks passed
@mpkorstanje mpkorstanje deleted the reduce-classpath-scanner-noise branch October 15, 2025 16:39
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.

ClasspathScanner is noisy

2 participants