I need to comment multiple lines while debugging test cases. single line i can comment using # but I am looking for block comments.
example:
I need to comment multiple lines while debugging test cases. single line i can comment using # but I am looking for block comments.
example:
The Gherkin syntax does not support block-comments, but here is what most teams do.
Use the Cucumber IDE integration - supported in Eclipse, IntelliJ, Visual Studio Code etc.
For example, if you use Eclipse, CTRL + / will comment all selected lines.
In Gherkin, """ """ can comment the block of the code.
But for Karate, it would be just a block.
I could achieve the same as follows and the below lines were commented.
"""
/*
And match response.messageTraceId == (#number)
And match response.messageTraceId != (null)
And match response.currentBalance != (null)
And match response.availBalance != (null)
*/
"""
I see that more folks are using the following way