Граф коммитов

13 коммитов

Автор SHA1 Сообщение Дата
Softonik
f6ed69097f Модуль переименован для публикации
Некоторые проверки провалились
test / test (1.16.x) (push) Has been cancelled
test / test (1.17.x) (push) Has been cancelled
2025-04-03 05:36:58 +03:00
Viacheslav Poturaev
9baac0fdfa
Allow suite-level configuration of steps and hooks (#453)
* Allow suite-level configuration of steps and hooks

* Fix a few typos

* Update CHANGELOG.md

* Add test

* Run scenario in same goroutine to preserve stack when concurrency is disabled

* Remove redundant check
2022-01-12 23:40:41 +01:00
Viacheslav Poturaev
d074262d59
Rename godog.Feature alias to godog.GherkinDocument to be more accurate (#422) 2021-08-17 10:53:53 +02:00
Viacheslav Poturaev
92ea38e7ce
Reduce dependency when implementing custom formatter with local alias (#421) 2021-08-15 21:59:39 +02:00
Viacheslav Poturaev
b1728ff551
Add new contextualized API for hooks and steps (#409)
* Add new contextualized API for hooks and steps

* Make default context configurable

* Run AfterStep hooks even after failed steps, fixes #370

* Update CHANGELOG and README

* Add step result status to After hook, fixes #378

* Elaborate hooks documentation

* Add test to pass state between contextualized steps

* Update README with example of passing state between steps
2021-08-03 17:48:05 +02:00
tfreville
fca39e4e89 test(convey): Add goconvey for test to ease test writting.
Add tests for panic in test_context initialization.

Made as independ commit so it can be rollbacked.
2021-07-13 10:34:25 +02:00
tfreville
fbed999ad8 feat(step_definition): Allows to define step function without return.
Issue: It is not possible to use function without return when
       matching steps, resulting in a lot of Nil only error
       returns.

Fix: Allows to provide empty result function by correctly matching
     reflect Calls on step Handler.
     When nothing is returned by the Handler, it will return
     nil as if errors was nil.
2021-07-13 10:31:39 +02:00
MBow
5414f3c5da update gherkin-go to v19.0.3
update messages-go to v16.0.1
bump gomod version
comment on log line in std os.Stderr
examples to non rc version
go mod tidy
update circle (tbd)
2021-06-28 17:19:43 +01:00
Fredrik Lönnblad
2fa3b9f08c Moved StepDefinition to the formatters pkg 2020-07-11 10:49:36 +02:00
Fredrik Lönnblad
150c400163 Created internal packages for formatters, storage and models 2020-07-02 08:51:31 +02:00
Fredrik Lönnblad
99723f8220 Moved the builder code to a new internal pkg 2020-07-01 07:54:59 +02:00
Fredrik Lönnblad
dbd8cdf723 Removed deprecated code 2020-06-27 19:13:38 +02:00
Fredrik Lönnblad
e6227a2e0f Added the new TestSuiteInitializer and ScenarioInitializer 2020-05-18 09:48:06 +02:00