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

[vividus-engine] Fix logging of deprecated steps without parameters inside composite steps #4682

Conversation

draker94
Copy link
Contributor

Closes #4680

@draker94 draker94 requested a review from a team as a code owner December 20, 2023 15:17
Copy link

codecov bot commented Dec 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6767378) 97.39% compared to head (5375062) 97.40%.
Report is 40 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #4682      +/-   ##
============================================
+ Coverage     97.39%   97.40%   +0.01%     
- Complexity     6525     6566      +41     
============================================
  Files           914      917       +3     
  Lines         18786    18876      +90     
  Branches       1251     1254       +3     
============================================
+ Hits          18297    18387      +90     
  Misses          383      383              
  Partials        106      106              

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

Matcher stepMatcher = getStepMatcher(runningDeprecatedStep);
String[] stepParams = getParametersFromStep(stepMatcher);
Optional<Matcher> stepMatcher = getStepMatcher(runningDeprecatedStep);
String[] stepParams = stepMatcher.map(this::getParametersFromStep).orElseGet(() -> new String[0]);
Copy link
Collaborator

Choose a reason for hiding this comment

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

that's a fix of the reason, but not root cause, any plans to do root cause analysis?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that's a fix of the reason, but not root cause, any plans to do root cause analysis?

The root of the problem is that steps within composite steps can be processed by separate logic (without using stepMonitor which we use to collect patterns of the current steps from tests) on the JBehave side.
https://github.com/jbehave/jbehave-core/blob/9510692f56f31551aa52e0eeddc03cc426deaea5/jbehave-core/src/main/java/org/jbehave/core/steps/StepCandidate.java#L242-L243

I'll think about how to make the "monitoring" of matched steps more unified on the JBehave side.

@draker94 draker94 force-pushed the fix_logging_of_deprecated_composed_steps branch from e6b369e to 5375062 Compare December 21, 2023 08:57
@draker94 draker94 changed the title [vividus-engine] Fix logging of deprecated composite steps without parameters [vividus-engine] Fix logging of deprecated steps without parameters inside composite steps Dec 21, 2023
@valfirst valfirst merged commit c35b389 into vividus-framework:master Dec 21, 2023
7 checks passed
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.

NullPointerException when run a composite step inside another composite step
3 participants