autostep / AutoStep

AutoStep Testing Framework - Core Libraries and Components
MIT License
22 stars 1 forks source link

Gherkin Language Features - Doc Strings #15

Open alistairjevans opened 4 years ago

alistairjevans commented 4 years ago

Need to support the large body of text (doc strings) instead of a table as an argument to statement.

For example:

Given I have entered the following text into the comments field:
  """
   Big block of text
   Multiple lines supported
  """
alistairjevans commented 4 years ago

Note that this will have to supported in interaction steps as well. The interaction language will need some indicator that a step accepts a block of text.

Perhaps a constant variable, docstring always available?

Downside of that approach is there is no clarity in which Step to invoke if there are two steps, one of which uses docstring, and one of which doesn't. Compiler could look at the used variable references in the method chain for the step and add to a the step definition a 'requires docstring'?