Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: as text should not give a lint error #16

Open
SagarGi opened this issue Jun 29, 2022 · 1 comment
Open

Feature: as text should not give a lint error #16

SagarGi opened this issue Jun 29, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@SagarGi
Copy link
Contributor

SagarGi commented Jun 29, 2022

Description

While writing feature file Feature: as a text gives linting error, since it is not used as a keyword it should not give error as There should be only one Feature: keyword in a feature file

For example, the below feature file should not give linting error since Feature: is used as a text:

Feature: Feature name
    This is a Feature: description section
@phil-davis
Copy link

Maybe any line that starts with (whitespace)Feature: should be reported by the linter:

Feature: upload files
  As a regular user
  I want to upload files
  So that they will be available on multiple of my devices

Scenario: upload a file
  Given the user has been created
  When the user uploads a file
  Then the file should exist on the server

Feature: download files

Scenario: download a file
...

If someone pastes multiple features into one file, that is not allowed.

@saw-jan saw-jan added the bug Something isn't working label Jun 29, 2022
@SagarGi SagarGi self-assigned this Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants