Code Monkey home page Code Monkey logo

.feature-file-syntax-highlight-cucumber-'s People

Contributors

berhorshadowbuckle avatar blodwynn avatar roroszhs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

.feature-file-syntax-highlight-cucumber-'s Issues

Highlight "Scenarios" like "Examples" in Scenario Outline

See Gherkin documentation https://docs.cucumber.io/gherkin/reference/#scenario-outline

In my tests I do not always use examples, but also Scenarios as title for the following table.
I checked with the official documentation and they do allow both. Please update the extention to also support "Scenarios"

e.g.
Scenario outline: my test
Given I have entered <input_1> into the calculator
And I have entered <input_2> into the calculator
When I press
Then the result should be on the screen

Scenarios:
| input_1 | input_2 | button | output |
| 20 | 30 | add | 50 |
| 2 | 5 | add | 7 |

Wrong line comment character?

According to https://docs.cucumber.io/gherkin/reference/ the proper character to use to mark a line as a comment in a Gherkin feature file is #. This extension presently uses // and also uses /* */ for multi-line comments, which I believe are not supported in Gherkin (some people use """ to simulate multi-line comments, but these normally mark doc strings).

Anyway, I think this extension should at least use # instead of //. You can change this on line 4 of the language-configuration.json file. I leave it up to you if you want to simulate multi-line comments with """ or not, but clearly /* */ is not right.

Really love this extension, but this comment thing is bugging me!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.