Skip to content

Deprecate omitting lines with only ... #3107

Closed
Closed

Description

@pekkaklarck

At the moment lines with only the continuation marker ... are handled somewhat inconsistently.

  1. When used with documentation in the settings section or with the [Documentation] setting such a line creates an empty documentation line needed to form paragraphs:

    *** Settings ***
    Documentation    First row.
    ...              Second row.
    ...
    ...              First row of the second paragraph.
  2. When used as an argument to a keyword, such rows are ignored. For example, here Keyword ends up called with two arguments and the line with only ... is totally ignored:

    *** Test Cases ***
    Example
        Keyword    argument
        ...                 
        ...    another argument

This different handling of lines with only ... causes problems for the new parsed in RF 3.2 (#3076) similarly as #3105 and #3106. It seems that the best way to handle this problem is making lines with only ... equivalent to lines with only a single empty value. That won't affect the usage with documentation where this syntax currently is needed and thus actually used. The change obviously affects the usage with keywords as in the second example above, but because currently the syntax has no effect nobody should have any reasons to use it.

We are going to deprecate using ... without a meaning in RF 3.1.2 and then change the behavior in RF 3.2.

Activity

  1. added this to the v3.1.2 milestone on Mar 1, 2019
  2. pekkaklarck commented on Apr 10, 2019

    @pekkaklarck
    MemberAuthor

    In addition to documentation, empty lines with only ... have a meaning in test suite metadata. Parsing metadata values has same semantics as parsing documentation.

  3. pekkaklarck commented on May 21, 2019

    @pekkaklarck
    MemberAuthor

    This change affects also cases where there's a comment after ... like

    *** Test Cases ***
    Example
        Keyword    argument
        ...    # comment            
        ...    another argument

    The fix is to remove ...:

    *** Test Cases ***
    Example
        Keyword    argument
        # comment            
        ...    another argument
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions