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

[Java] Process glue classes distinctly #2582

Merged
merged 1 commit into from
Jul 9, 2022

Conversation

mpkorstanje
Copy link
Contributor

Users may provide glue paths where one is a strict subset of hte other.
For example:

com.example
com.example.app

Cucumber would scan both packages (and sub packages), and for each process the
classes it discovered. This would result in the classes from the app package
being processed twice.

Fixes: #2581

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

@codecov
Copy link

codecov bot commented Jul 4, 2022

Codecov Report

Merging #2582 (4bf1dc5) into main (1c65b80) will increase coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head 4bf1dc5 differs from pull request most recent head 54ed086. Consider uploading reports for the commit 54ed086 to get more accurate results

@@            Coverage Diff            @@
##               main    #2582   +/-   ##
=========================================
  Coverage     84.61%   84.62%           
  Complexity     2661     2661           
=========================================
  Files           310      310           
  Lines          9348     9352    +4     
  Branches        899      899           
=========================================
+ Hits           7910     7914    +4     
  Misses         1109     1109           
  Partials        329      329           
Impacted Files Coverage Δ
.../src/main/java/io/cucumber/guice/GuiceBackend.java 100.00% <100.00%> (ø)
...va/src/main/java/io/cucumber/java/JavaBackend.java 100.00% <100.00%> (ø)
.../src/main/java/io/cucumber/java8/Java8Backend.java 100.00% <100.00%> (ø)
...rc/main/java/io/cucumber/spring/SpringBackend.java 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1c65b80...54ed086. Read the comment docs.

Users may provide glue paths where one is a strict subset of hte other.
For example:

```
com.example
com.example.app
```

Cucumber would scan both packages (and sub packages), and for each process the
classes it discovered. This would result in the classes from the `app` package
being processed twice.

Fixes: #2581
@mpkorstanje mpkorstanje force-pushed the 2581-process-glue-classes-distinctly branch from 4bf1dc5 to 54ed086 Compare July 9, 2022 21:09
@mpkorstanje mpkorstanje marked this pull request as ready for review July 9, 2022 21:09
@mpkorstanje mpkorstanje merged commit 9bf41b8 into main Jul 9, 2022
@mpkorstanje mpkorstanje deleted the 2581-process-glue-classes-distinctly branch July 9, 2022 21:09
gaeljw added a commit to cucumber/cucumber-jvm-scala that referenced this pull request Jul 28, 2022
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.

GlueAdaptor::addDefinition() will create duplicated DocString transformers
1 participant