JBehave
  1. JBehave
  2. JBEHAVE-799

Empty lines in an example table are processed as tests

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.6.8
    • Fix Version/s: 3.6.9, 3.7
    • Component/s: Core
    • Labels:
      None
    • Environment:
      java 1.6.0-26, windows 7
    • Number of attachments :
      1

      Description

      I commented some lines from an example and inserted an empty line in between like this:

      header1 header2
      value value
      value value

      this causes an empty set of parameters to be processed after the active lines are processed, I assume that the empty lines are processed as tests as well.

      If I remove the empty line again, the empty test run disappears.

        Activity

        Hide
        Alexander Lehmann added a comment -

        the table didn't quite survive jira formatting

        |header1|header2|
        |value|value|
        
        |--|value|value|
        
        Show
        Alexander Lehmann added a comment - the table didn't quite survive jira formatting |header1|header2| |value|value| |--|value|value|
        Hide
        Alexander Lehmann added a comment -

        This probably only happens when the story file is saved with crlf line endings, if I change the file to unix line endings, it works

        Show
        Alexander Lehmann added a comment - This probably only happens when the story file is saved with crlf line endings, if I change the file to unix line endings, it works
        Hide
        Alexander Lehmann added a comment -

        example project

        Show
        Alexander Lehmann added a comment - example project
        Alexander Lehmann made changes -
        Field Original Value New Value
        Attachment jbehave-799.zip [ 60565 ]
        Mauro Talevi made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Mauro Talevi [ maurotalevi ]
        Fix Version/s 3.6.9 [ 18650 ]
        Resolution Fixed [ 1 ]
        Mauro Talevi made changes -
        Fix Version/s 3.7 [ 18390 ]

          People

          • Assignee:
            Mauro Talevi
            Reporter:
            Alexander Lehmann
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: