JBehave
  1. JBehave
  2. JBEHAVE-1005

Underscores in step parameters unsupported since JBehave 3.9

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.9, 3.9.1
    • Fix Version/s: 3.9.2
    • Component/s: Core
    • Labels:
    • Number of attachments :
      0

      Description

      Starting with JBehave 3.9 underscores are no longer supported in step parameters.

      Eg. the following step annotation used to work with JBehave 3.8 and before, but results in a pending step when using 3.9 and 3.9.1:
      @Given("a step containing an underscore in a parameter $test_param")

      This must be related to JBEHAVE-957 and JBEHAVE-974

        Activity

        Simon Schneider made changes -
        Field Original Value New Value
        Description Starting with JBehave 3.9 undescores are no longer supported in step parameters.

        Eg. the following step annotation used to work with JBehave 3.8 and before, but does not with 3.9 and 3.9.1:
        @Given("a step containing an undescore in a paramerter $test_param")

        This must be related to JBEHAVE-957 and JBEHAVE-974
        Starting with JBehave 3.9 underscores are no longer supported in step parameters.

        Eg. the following step annotation used to work with JBehave 3.8 and before, but does not with 3.9 and 3.9.1:
        @Given("a step containing an underscore in a parameter $test_param")

        This must be related to JBEHAVE-957 and JBEHAVE-974
        Simon Schneider made changes -
        Description Starting with JBehave 3.9 underscores are no longer supported in step parameters.

        Eg. the following step annotation used to work with JBehave 3.8 and before, but does not with 3.9 and 3.9.1:
        @Given("a step containing an underscore in a parameter $test_param")

        This must be related to JBEHAVE-957 and JBEHAVE-974
        Starting with JBehave 3.9 underscores are no longer supported in step parameters.

        Eg. the following step annotation used to work with JBehave 3.8 and before, but results in a pending step when using 3.9 and 3.9.1:
        @Given("a step containing an underscore in a parameter $test_param")

        This must be related to JBEHAVE-957 and JBEHAVE-974
        Mauro Talevi made changes -
        Fix Version/s 3.9.2 [ 20180 ]
        Hide
        Mauro Talevi added a comment - - edited

        Added the connector punctuation to the default character class of the RegexPrefixCapturingPatternParser. In the interim, you can configure your parser and provide

        [\p{L}\p{N}\p{Pc}]

        as a character class.

        Show
        Mauro Talevi added a comment - - edited Added the connector punctuation to the default character class of the RegexPrefixCapturingPatternParser. In the interim, you can configure your parser and provide [\p{L}\p{N}\p{Pc}] as a character class.
        Mauro Talevi made changes -
        Resolution Fixed [ 1 ]
        Assignee Mauro Talevi [ maurotalevi ]
        Status Open [ 1 ] Resolved [ 5 ]
        Hide
        Mauro Talevi added a comment -

        Latest 3.10-SNAPSHOT deployed contains fix: http://jbehave.org/reference/latest/download.html

        Show
        Mauro Talevi added a comment - Latest 3.10-SNAPSHOT deployed contains fix: http://jbehave.org/reference/latest/download.html

          People

          • Assignee:
            Mauro Talevi
            Reporter:
            Simon Schneider
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: