Is it a good practice to put a colon (:) at the end of step definition for cucumber dataTable?

256 views Asked by At

I have seen in many examples that it is not required to put a colon at the end of (Given|When|Then) step definitions where cucumber data table is specified. What if a colon is specified similar to Jbehave syntax ? Is it error prone?

enter image description here

1

There are 1 answers

0
David Goss On

Gherkin has no rules about this, so it's down to whatever convention works for you. FWIW I do this for data tables and doc strings.