I was trying to comment multiple steps for my calabash Feature file (Ruby) using """.I'm using # for commenting single lines for my features but cant able to do for multiple lines. Can you please suggest me any ways to comment multiple lines.I'm using latest version of calabash with Ruby v 2.0
-
There are ways to comment multiple-line blocks in Ruby, but rdoc won't catch them when processing the documentation from the source file, so you're better off using `#` to comment them. – the Tin Man Oct 31 '14 at 16:41
4 Answers
There are ways to comment code or delineate docstrings in Gherkin:
Single line -> use # symbol
Multiple lines -> use """ (i.e. three double-quote marks)
The inspiration for PyString comes from Python.
Friends, Don't forget to vote if resolve your issue.

- 851
- 11
- 22
Commenting multiple line in a cucumber feature file is quite possible and as easy. Just select all the lines you want to comment out and hit Ctrl+/. this works well in intellij also. Note: Same key combination can be used to uncomment- ctrl+/

- 2,318
- 6
- 19
- 37

- 1,436
- 13
- 19
There are no multiline comments in Gherkin. Just comment every line.

- 363,080
- 75
- 446
- 653
The method with """ leads to a parsing error in my IDE (intelliJ) when executing my Tests. expected: #EOF, #TableRow, #TagLine, #ExamplesLine, #ScenariosLine, #ScenarioOutlineLine, #Comment, #Empty, got '"""'
So i guess on execution Cucumber really does not like those """.
I prefer the Ctrl+/ way to comment unused Gherkin-Stuff!

- 21
- 3