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

66 коммитов

Автор SHA1 Сообщение Дата
Softonik
6c3e2a2103 Добавлена поддержка focused-тестов во множестве feature-файлов 2022-08-22 22:04:02 +03:00
Softonik
3f03171dab Добавлена поддержка тестов с f-тегом 2022-08-22 14:00:00 +03:00
Softonik
8c152351c7 Добавлена генерация русских названий функций 2022-05-28 17:36:13 +03:00
Viacheslav Poturaev
b850b44b48
Invoke After Scenario hooks after After Step hooks (#444)
* Invoke After Scenario hooks after After Step hooks

* Update CHANGELOG.md

Co-authored-by: Matt Wynne <matt@cucumber.io>
2021-12-02 16:09:23 -08:00
Viacheslav Poturaev
8cf3f415b3
Add scenario hook errors to first and last steps (#417) 2021-08-08 22:42:41 +02:00
Viacheslav Poturaev
f1ca5dc00e
Add test case for DocString and Table suggestion rendering, closes #367 (#415) 2021-08-07 23:07:37 +02:00
Viacheslav Poturaev
09d7d85abf
Fix execution of scenarios provided as a list of path:line (#414) 2021-08-07 22:37:31 +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
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
Hiram Chirino
5ac22c454c feat: generate simpler snippets that use *godog.DocString and *godog.Table 2021-03-16 09:42:22 +01:00
Hiram Chirino
2b6c9dc82e feat: support auto converting doc strings to plain strings 2021-03-16 09:40:37 +01:00
Fredrik Lönnblad
7014a10e2f
Fixed the undefined step definitions help (#350) 2020-10-14 08:39:14 +02:00
Fredrik Lönnblad
7df9dadeb9 Fixed so that we don't execute features with zero scenarios 2020-06-23 19:53:46 +02:00
Fredrik Lönnblad
1d724e2107 Removed the deprecated feature hooks 2020-06-20 20:06:30 +02:00
Fredrik Lönnblad
075d624710 Added a missed test file and updated the CHANGELOG 2020-04-30 14:32:13 +02:00
Fredrik Lönnblad
0d1fb60ba0 Added sorting for undefined snippets on method name 2020-03-24 10:05:05 +01:00
Fredrik Lönnblad
0ab3e09327 Merge branch 'master' into release/v0.9.0 2020-03-10 09:23:19 -03:00
tfreville
fe2a967670 Clean change on pretty. Make test on new TC meaningfull again. 2020-03-09 20:54:10 +01:00
Fredrik Lönnblad
03c53d9780
Revert "Revert "Migrated to github.com/cucumber/gherkin-go - v9.2.0"" 2020-03-09 14:40:09 -03:00
tfreville
eb75d692bd <fix>(PRETIFIER): Fix s method to not have errors on negative entry
Context:
While trying to create an helper library to manage http rest api testing, I made a system witch allow to pick value from responses, header, cookie, ... and inject then as variables.
Issue:
Doing this, when the inject variable make the line longer than the longest declared step, godog will failed to render test result under pretty formatting cause it will try to write a comment on a negative index
Fix:
Fix s methods so it will not goes to fatal when recieving negative number.
2020-03-09 10:39:20 +01:00
Fredrik Lönnblad
84b42bdd4d
Revert "Migrated to github.com/cucumber/gherkin-go - v9.2.0" 2020-03-05 19:37:39 -03:00
Fredrik Lönnblad
c32f3cd5d7 Reverted an update of a cucumber test file 2020-03-05 14:33:18 -03:00
Fredrik Lönnblad
887273ddbd Fixed broken tests 2020-03-02 19:57:46 -03:00
Fredrik Lönnblad
c2c123f90a Migrated to github.com/cucumber/gherkin-go - v9.2.0
Signed-off-by: Fredrik Lönnblad <fredrik+github@lonnblad.com>
2020-02-29 16:00:33 -03:00
Fredrik Lönnblad
1a35035f3e Fixed a bug regarding JUnit time field 2020-02-26 16:15:39 -03:00
Fredrik Lönnblad
11ac07ea24 Added gherkin verification of the JUnit formatter 2020-02-11 18:55:36 -03:00
Fredrik Lönnblad
de8b0f071b Added features/formatter/pretty.feature 2020-02-11 08:14:46 -03:00
gedi
5c352074bc
support for tags in outline examples, closes #133 2018-09-28 16:17:13 +03:00
gedi
272624afcc
do not fire events when feature or scenario is empty 2017-10-26 14:14:34 +03:00
gedi
db3c6246b8
closes #97 2017-08-31 09:30:17 +03:00
gedi
70f777599d
closes #92 2017-07-02 19:22:23 +03:00
gedi
b10470da31
closes #86 2017-05-24 16:04:43 +03:00
Matthew Rothenberg
43dd0a1df3 fix line numbers in test after rebase 2017-05-05 13:44:48 -04:00
Matthew Rothenberg
304f1ea232 allow additional context initializers to be passed to SuiteContext
enables developers to inject extra context into the test environment
when running suites in meta-tests.
2017-05-05 11:40:35 -04:00
Matthew Rothenberg
2b109b5ea8 move SuiteContext out of _test namespace
This allows it to be easily re-used in other libraries to do
meta-testing on their own godog features/steps.

At some point it may make sense to migrate this entirely to a
sub-package of godog, however that would require a larger
re-architecting of the project structure to avoid circular dependencies
(e.g. `import cycle not allowed`).
2017-05-05 11:40:35 -04:00
gedi
f87d99d0aa
fixes a bug, when there are undefined steps after failing step #80 2017-05-04 11:02:01 +03:00
gedi
5bfd57218a
adds more tests for multistep execution 2017-04-29 00:13:14 +03:00
gedi
703b40de76
adds scenarios to test nested steps 2017-04-28 22:04:49 +03:00
gedi
df5310a062
tests junit formatter 2017-04-28 15:46:11 +03:00
gedi
96efe41c4d simplify cucumber output format matcher for now 2017-03-09 18:48:56 +02:00
Stettler, Robert
819ce03090 Reformatting. 2017-03-02 10:50:30 -05:00
Stettler, Robert
061d3a3b74 Added support for Docstirngs
Updated lang.feature with the additional cucumber.feature
Updated load.feature with the additional cucumber.feature
Updated events.feature to account for ripple effect of updating lang and load
Updated run.go to indicate that cucumber formatter does not support concurrent.
Updated suite_test.go to handle one new testing step.
2017-02-23 11:49:04 -05:00
gedi
c50c2dc368 initial tests for event stream formatter 2016-10-30 18:27:34 +02:00
gedi
c302697f9e fix snippet string argument extraction followed by non space character 2016-09-20 15:21:08 +03:00
gedi
abc6b65c1c sort feature files by path when executing, separate the concurrent runner 2016-06-16 12:01:58 +03:00
gedi
4610466f82 require godog contexts to be exported 2016-06-14 16:33:13 +03:00
gedi
8419e90c92 adjust and add tests to snippet builder 2016-05-15 12:43:30 +03:00
gedi
970eddc16a refactor suite runner to support concurrent model
* ef86715 add a concurrency flag
* 8674a58 run suite concurrently, closes #3
2015-07-03 15:54:26 +03:00
gedi
56998cc5cf test undefined step snippet templates 2015-07-03 10:34:05 +03:00
gedi
5829b59e80 improve scenario outline tests and behavior 2015-06-30 14:36:38 +03:00