Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can i do multiline commenting for my feature steps for Calabash with Ruby

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

like image 500
Raj Chinta Avatar asked Dec 04 '22 05:12

Raj Chinta


2 Answers

There are ways to comment code or delineate docstrings in Gherkin:

  1. Single line -> use # symbol

  2. 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.

like image 182
Narendra Chandratre Avatar answered May 17 '23 09:05

Narendra Chandratre


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+/

like image 34
Satyendra Sharma Avatar answered May 17 '23 10:05

Satyendra Sharma