diff --git a/CHANGELOG.md b/CHANGELOG.md index 196911f..b1be2ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,8 @@ This document is formatted according to the principles of [Keep A CHANGELOG](htt ### Added +* Support for step definitions without return ([364](https://github.com/cucumber/godog/pull/364) -[titouanfreville]) + ### Changed * Upgraded gherkin-go to v19 ([402](https://github.com/cucumber/godog/pull/402) - [mbow]) diff --git a/README.md b/README.md index d5ce43d..9a3e3a2 100644 --- a/README.md +++ b/README.md @@ -210,6 +210,14 @@ Feature: eat godogs You may change **return godog.ErrPending** to **return nil** in the three step definitions and the scenario will pass successfully. +Also, you may omit error return if your step does not fail. + +```go +func iEat(arg1 int) { + // Eat arg1. +} +``` + #### Step 5 - Create the main program to test We only need a number of **godogs** for now. Lets keep it simple.