tpope / vim-cucumber

Vim Cucumber runtime files

Home Page:http://www.vim.org/scripts/script.php?script_id=2973

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pytest-bdd syntax support

zubieta opened this issue · comments

pytest-bdd uses a slightly different syntax for multiline steps than the original doc strings/pystrings defined in gherkin.

Will it be possible to adjust the syntax to support this use-case as well?

Instead of:

Feature: Multiline steps
    Scenario: Multiline step using sub indentation
        Given I have a step with:
            """
            Some
            Extra
            Lines
            """
        Then the text should be parsed with correct indentation

They use

Feature: Multiline steps
    Scenario: Multiline step using sub indentation
        Given I have a step with:
            Some
            Extra
            Lines
        Then the text should be parsed with correct indentation

Would love to see this implemented :)