Этот коммит содержится в:
Viacheslav Poturaev 2021-07-22 20:56:26 +02:00
родитель 63fd657a22
коммит cdbb0ac3f3
2 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -12,6 +12,8 @@ This document is formatted according to the principles of [Keep A CHANGELOG](htt
### Added ### Added
* Support for step definitions without return ([364](https://github.com/cucumber/godog/pull/364) -[titouanfreville])
### Changed ### Changed
* Upgraded gherkin-go to v19 ([402](https://github.com/cucumber/godog/pull/402) - [mbow]) * Upgraded gherkin-go to v19 ([402](https://github.com/cucumber/godog/pull/402) - [mbow])

Просмотреть файл

@ -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. 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 #### Step 5 - Create the main program to test
We only need a number of **godogs** for now. Lets keep it simple. We only need a number of **godogs** for now. Lets keep it simple.