Saved Bookmarks
| 1. |
How do you comment the code in Cucumber? What is the importance of comments? |
|
Answer» A comment is a chunk of code that is intended for documentation rather than execution. To make it more legible and clear, whether it's a STEP definition file or a feature file. As a result, it's critical to use/insert comments in the right places THROUGHOUT the file. This is also beneficial for troubleshooting the code. Comments can be added to Cucumber feature files at any time. To add comments, simply begin the statement with the “#” sign. |
|