Skip to main content

Comments

Including comments within a Feature File can greatly increase the readability of the Feature. Comments can be used to convey many different types of information, including the purpose of a Feature or Scenario, explanations of why a script was written a certain way, or special instructions for the users.

Any line in a script that begins with the hash character is considered a comment. All text on a line that begins with a # is ignored when the Feature or Scenario is executed. The figure below shows a comment positioned at the start of a Feature.

Comments in Cycle