Closed saurabhsjoshi closed 2 years ago
Interesting, I will look into that
LOL, what am I doing...
while (!stepsCopy.isEmpty()) {
var step = stepsCopy.poll();
var matchResult = tryMatchStep(step, jStepDefMethodDetails).orElseThrow(
() -> new EasyCucumberException(ErrorCode.EZCU013, "Step definition not found for: " + stepsCopy.get(0)
+ ". Are you sure you implemented this step definition? Or did you forget to make the method public?")
);
results.put(step, matchResult);
}
it should not be stepsCopy.get(0)
but step
Guess I will need another hot fix release 0.3.2
, but seems it is not affecting the functionalities I will just pin this issue for a period of time and not bothering board casting another email
Describe the bug or Question When the framework is unable to match a statement from feature file to a step definition (most likely due to missing step def), the error message is not accurate as it refers to some other line in the feature file instead of the line that cause the issue.
(For bug report only) To Reproduce For example if I have following scenario:
And for example, if I have not defined a step-def for the line
And The player names are the following 'Player1'
I see the following stack-trace:(If applicable) Stack Trace
logs
Pasted above
(If applicable) Screenshots If applicable, add screenshots to help explain your problem.
(For bug report only) Expected behavior The error message should mention
Step definition not found for And The player names are the following 'Player1'
instead of the line that is below that.Environment (please complete the following information):
Anything else N/A