Details

    • Type: Improvement Improvement
    • Status: Resolved Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5.8, 2.5.9, 3.0
    • Fix Version/s: 3.0.3
    • Component/s: Core
    • Labels:
      None
    • Number of attachments :
      0

      Description

      We'd like to be able to include comments in tables to make scenarios clearer, but JBehave refuses to read in the lines after the comment in this example, leading to zero rows being created in the resulting ExamplesTable.

      Given the documents:

      a b c
      – I'd like to have a comment here –
      1 2 3
      4 5 6
      1 2 3

      I've tried a small test with 2.5.9 and 3.0 of JBehave but they don't fix the problem.

        Activity

        Mauro Talevi made changes -
        Field Original Value New Value
        Summary Table parsing stops when a comment is found Allow comments in tables
        Issue Type Bug [ 1 ] Improvement [ 4 ]
        Fix Version/s 3.0.3 [ 16775 ]
        Component/s Core [ 11086 ]
        Mauro Talevi made changes -
        Description We'd like to be able to include comments in tables to make scenarios clearer, but JBehave refuses to read in the lines after the comment in this example, leading to zero rows being created in the resulting ExamplesTable.

        Given the documents:
        |a|b|c|
        !-- I'd like to have a comment here
        |1|2|3|
        |4|5|6|
        |1|2|3|




        I've tried a small test with 2.5.9 and 3.0 of JBehave but they don't fix the problem.
        We'd like to be able to include comments in tables to make scenarios clearer, but JBehave refuses to read in the lines after the comment in this example, leading to zero rows being created in the resulting ExamplesTable.

        Given the documents:
        |a|b|c|
        |-- I'd like to have a comment here --|
        |1|2|3|
        |4|5|6|
        |1|2|3|


        I've tried a small test with 2.5.9 and 3.0 of JBehave but they don't fix the problem.
        Mauro Talevi made changes -
        Assignee Mauro Talevi [ maurotalevi ]
        Hide
        Mauro Talevi added a comment -

        Added separator "|--" to ignore table rows in parsing. Separator is configurable via Keywords as other example table's separators.

        Show
        Mauro Talevi added a comment - Added separator "|--" to ignore table rows in parsing. Separator is configurable via Keywords as other example table's separators.
        Mauro Talevi made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Mauro Talevi
            Reporter:
            Andy Peel
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: