ghokin icon indicating copy to clipboard operation
ghokin copied to clipboard

Steps containing Data-Table and DocString fail

Open DDtKey opened this issue 2 years ago • 3 comments

Hi there! First of all thanks for the linter and its maintenance!

I just wonder why this is disallowed? 🤔

Example:

    When user does something
      """
        ok
      """
      | a | b |

lead to

Parser errors:
(x:y): expected: #EOF, #StepLine, #TagLine, #ExamplesLine, #ScenarioLine, #RuleLine, #Comment, #Empty, got '      | a | b |

But I don't see any mentions in reference that it's disallowed to combine them Moreover, it works with ~~quite a lot of~~ cucumber-runners, JetBrains plugin also marks such syntax as valid.

DDtKey avatar Feb 29 '24 02:02 DDtKey

Hi, here we are using the cucumber go library to parse the file, the message above is from the library.

antham avatar Feb 29 '24 22:02 antham

Oh, got it, in that case the issue should be redirected, since there seems to be a difference in the behavior of the implementations for different languages.

Thanks

DDtKey avatar Feb 29 '24 22:02 DDtKey

I checked if it could come from another part of the code but it seems to be really coming from their side.

antham avatar Feb 29 '24 22:02 antham

@DDtKey Hi, from what I get in the ticket to cucumber, nothing will be done to support that behaviour right?

antham avatar May 03 '24 21:05 antham

Yes, I think so, the behavior will be documented.

Let's close the issue. Thank you!

DDtKey avatar May 03 '24 21:05 DDtKey

Thank you for reporting that here and to cucumber!

antham avatar May 03 '24 21:05 antham