JBehave
  1. JBehave
  2. JBEHAVE-722

Examples Table parser can be improved to allow a comment as the first line

    Details

    • Type: Improvement Improvement
    • Status: Resolved Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.5.4
    • Fix Version/s: 3.6.4, 3.7
    • Component/s: Core
    • Labels:
      None
    • Number of attachments :
      0

      Description

      I tried to format a examples table in the following way:



      one two


      1 2


      However, the examples table parser requires the table to start with the header (it cannot start with a comment).
      To allow it, I just did the following patch: https://github.com/ruifigueira/jbehave-core/commit/0580bb233f885fd8bc9520238a78007c97f9987e (just consider changes in ExamplesTable and ExamplesTableBehaviour).

        Activity

        Hide
        Rui Figueira added a comment -

        I forgot to wrap the table in a code block...

        |-----|-----|
        | one | two |
        |-----|-----|
        | 1   | 2   |
        |-----|-----|
        
        Show
        Rui Figueira added a comment - I forgot to wrap the table in a code block... |-----|-----| | one | two | |-----|-----| | 1 | 2 | |-----|-----|
        Mauro Talevi made changes -
        Field Original Value New Value
        Fix Version/s 3.x [ 16979 ]
        Hide
        Mauro Talevi added a comment -

        Can you please provide a patch that only deals with the ExamplesTable, merged with latest master?

        It is then much easier to pull.

        Show
        Mauro Talevi added a comment - Can you please provide a patch that only deals with the ExamplesTable, merged with latest master? It is then much easier to pull.
        Hide
        Mauro Talevi added a comment -

        Applied patch with thanks.

        Show
        Mauro Talevi added a comment - Applied patch with thanks.
        Mauro Talevi made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 3.6.4 [ 18434 ]
        Fix Version/s 3.x [ 16979 ]
        Resolution Fixed [ 1 ]
        Mauro Talevi made changes -
        Fix Version/s 3.7 [ 18390 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Rui Figueira
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: