Skip to content

Support receiver style syntax for given/when/then #213

@jangalinski

Description

@jangalinski

Currently we are writing fluent method calls, as in java:

GIVEN
   .`a condition`()
   .AND
   .`another condition`()

WHEN
   .`something happens`()
THEN
   .`expect one result`()
   .AND
   .`expect second result`()

It would be more kotlin-link to use receivers and remove the .:

GIVEN {
   `a condition`()
   AND
   `another condition`()
}

WHEN {
   `something happens`()
}

THEN {
 `expect one result`()
  AND
  `expect second result`()
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions