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

830 коммитов

Автор SHA1 Сообщение Дата
Softonik
be71a25341 Сокращён вывод результатов 2025-06-01 16:18:54 +03:00
Softonik
ffcc5b10ae Модуль переименован для публикации
Некоторые проверки провалились
test / test (1.16.x) (push) Has been cancelled
test / test (1.17.x) (push) Has been cancelled
test / test (oldstable) (push) Has been cancelled
test / test (stable) (push) Has been cancelled
2025-06-01 02:41:39 +03:00
Softonik
eff1e7e3c6 Чистка 2025-06-01 02:40:05 +03:00
Softonik
4965079a86 Вывод генерённых функций - со скобками на разных строках 2025-06-01 02:40:04 +03:00
Softonik
8a7f61cb68 Поправлены snippet тесты и сам более удобный вид 2025-06-01 02:40:04 +03:00
Softonik
c3ddda4638 Более удобный вывод генерённых функций и шагов 2025-06-01 02:40:04 +03:00
Softonik
9f9f9453dc Код генерится с именами параметров (шаблонных примеров) 2025-06-01 02:40:04 +03:00
Softonik
93631bcb0a Добавлена mage команда запуска тестов родным образом 2025-06-01 02:40:03 +03:00
Softonik
2e4e7e9a27 Генерённые функции выдаются в порядке следования в сценарии (часть 2)
Поправлена ошибка нарушения последовательности шагов тестов, сохранённых
в базе  hashicorp/go-memdb@v1.3.2
Проявлялась в Go 1.19.
В Go 1.17, которая в требованиях - проблемы не было.
2025-06-01 02:39:51 +03:00
Softonik
279f4f6aba Генерённые функции выдаются в порядке следования в сценарии 2025-06-01 02:39:51 +03:00
Softonik
b2bfe907c6 Генерённые функции ничего не возвращают 2025-06-01 02:39:51 +03:00
Softonik
1a7826f87f Добавлена поддержка focused-тестов во множестве feature-файлов 2025-06-01 02:39:51 +03:00
Softonik
4fecb1bba8 Добавлена поддержка тестов с f-тегом 2025-06-01 02:39:50 +03:00
Softonik
5aa8dc6ace Добавлен Magefile.go 2025-06-01 02:39:50 +03:00
Softonik
99112e7070 Добавлена генерация русских названий функций 2025-06-01 02:39:37 +03:00
Dominik Gedon
74fa488023
Replace deprecated ::set-output (#681)
As per the deprecation warning and explanation at https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
2025-03-24 11:05:30 +01:00
Tighearnán Carroll
4a4fd8ab3a
fix(errors): Fix expected Step argument count for steps with context.Context (#679)
* fix(errors): print correct number of expected steps when step has  defined

* add unit test

* remove duplicate part from unit test

* update changelog
2025-03-19 23:04:06 +00:00
renovate[bot]
e03da742a5
fix(deps): update module github.com/spf13/pflag to v1.0.6 (#675)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-30 23:24:31 +00:00
Ahmadreza
14fe127e3d
Update honnef.co/go/tools/cmd/staticcheck version in Makefile (#670) 2024-12-19 11:12:33 +01:00
Viacheslav Poturaev
e55eab64f7
Add details to "step is undefined" error (#669)
* Add details to "step is undefined" error

* Update changelog
2024-12-10 16:54:49 +01:00
GrindStone
da4633a421
Localisation support (#665)
* Add dialect options to support localisation

* Add test for ParseFeatures support for localisation
2024-11-14 10:42:18 +01:00
Tighearnán Carroll
c5a88f62c2
fix(formatter): On concurrent execution, execute formatter at end of Scenario (#645)
* fix(formatter): add onflush logger only print output at end of scenario when running concurrently

* add to changelog

* fix tests

* fix scenario outline output for the Pretty formatter

* fix casing for linter

* add coverage for new storage function

* relate suite back to where it was originally

* better type assertion on flush log

* var name for asserted formatter that doesn't clash with stdlib's fmt

* add coverage to summary

* only defer flush func when running concurrently

* much more concise way of deferring the flush

---------

Co-authored-by: Viacheslav Poturaev <vearutop@gmail.com>
2024-11-08 17:05:40 +01:00
renovate[bot]
9b699ff9a8
fix(deps): update module github.com/cucumber/godog to v0.15.0 (#661)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-02 01:42:01 +00:00
Viacheslav Poturaev
dc6950b1e3 Update CHANGELOG.md 2024-10-31 19:06:21 +01:00
John Lonergan
ecd2dfebbd
Ambiguous step detection - add support to all formatters (#648)
* added the missing impl of json/events/junit/pretty - still need 'progress' and 'junit,pretty'

* added tests for "progress formatter"

* switched from tabs to spaces in the ambiguous steps error message

* rename some_scenarions_including_failing
to     some_scenarios_including_failing

* changelog
2024-10-16 15:41:47 +01:00
John Lonergan
223efc3b14
Fix some type checks on the signatures of nested step handlers (#647)
* at some point someone changed the return type for nested steps from []string to godog.Steps but they forgot to adjust the type checks. The existing type checks were lax and unable to distinguish  []string from godog.Steps but in a couple of places in the code the value is coerced to godog.Steps and so if someone returned []string then the code would blow up. Additionally there were some tests aroudn these types but they also had not been updated but the test was passing for the wrong reason - the particular test expected an error but the cause of the error wasn't the one the code expected.

* CHANGELOG.md

* use chatgpt to regen the top of the code based on the new tests

* use chatgpt to regen the top of the code based on the new tests

* corrected the error messages of the param checks to indicate that the problem is the function signature and not the args being passed to the function, also added numerous extra assertions on the precise error messages returned. Now that the precise error is being verified in the test I have improved certain error messages to that more accurate detail is included in the errors

* added further constraints to the step arg mapping tests

* removed redundant test

* include a step error result in the reported error even when the ctx is nil
2024-10-15 13:25:13 +01:00
John Lonergan
8edde7f30c
Bugfix afterscenario attachments (#646)
* Minor doc and comment corrections

* Fixed bug where it was impossible to make attachments from 'after scenario' hook, also removed some dud comments.

* typo
2024-10-06 02:12:56 +01:00
John Lonergan
1e7c45eb78
Minor doc and comment corrections (#644) 2024-10-05 02:40:42 +01:00
M.P. Korstanje
6e4f452389
Replace more slack with discord
See:
- https://github.com/cucumber/common/issues/2195
- https://github.com/orgs/cucumber/discussions/2197
2024-08-09 16:58:01 +02:00
M.P. Korstanje
9b51734429
Replace slack with discord
See:
- https://github.com/cucumber/common/issues/2195
- https://github.com/orgs/cucumber/discussions/2197
2024-08-09 16:51:01 +02:00
John Lonergan
901da7fa3d
fixed a bug where the attachments are extracted from the context too early, this prevented AfterStep from making attachments (#637)
* fixed a bug where the attachments are extracted from the context too early, this prevented AfterStep from making attachments
2024-07-23 17:22:51 +01:00
John Lonergan
bcf6bce793
ambiguous step def detection akin to cucumber jvm (#636)
* added basic detection for ambiguous steps, but causes an error and not yet recorded in the reports as 'Ambiguous', and no test cases figured out yet

* added initial support for detection of ambiguous steps - further work take a look at how cuke jvm report ambiguous steps and sets the step status to 'ambiguous' rather than my current solution which just blows the test up as a regular step error

* added suite_context_test and also introduced missing 'ambiguous' status to make cucumber jvm'

* update CHANGELOG for ambiguous step defs

* missed file from commit

* added internal/formatters/fmt_multi_test.go

* add tests for other peoples code

* added "ambigous" to the help text

* tests

* added some more tests for attachments

* Update internal/flags/flags.go

Co-authored-by: Viacheslav Poturaev <nanopeni@gmail.com>

---------

Co-authored-by: Viacheslav Poturaev <nanopeni@gmail.com>
2024-07-01 10:28:39 +01:00
John Lonergan
3abb346b28
provisional: Attachments now uses base64 padding not raw mode (#629)
* corrected base64 encoding of attachments to use padding as that's what cuke JVM does
2024-05-31 21:33:57 +01:00
John Lonergan
9558224cce
Additional code review observations on Attach() functionality from https://github.com/cucumber/godog/pull/623 (#628)
* support multiple calls to the Attach() function from a single step

* run_progress_test.go changed so it's not sensitive to the name of the clone target directory

* applied code review comments also added _example/attachments

* applied code review comments also added _example/attachments

* applied code review comments also added _example/attachments
2024-05-30 02:29:14 +00:00
John Lonergan
f85def32ee
Moved CHANGHELOG entry to correct location (#626) 2024-05-29 09:19:33 +02:00
John Lonergan
201e526078
added support for Attachments (aka Embedddings) (#623)
* added support for attachments in the cucumber json and events output formats - done by sneaking the attachment into the context.Context object.
2024-05-29 00:02:08 +01:00
Viacheslav Poturaev
4ade3314e8
Update CI and Makefile (#619) 2024-05-02 14:51:52 +02:00
renovate[bot]
c3756d1aa2
fix(deps): update module github.com/cucumber/godog to v0.14.1 (#618)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-30 14:31:36 +00:00
Viacheslav Poturaev
095a19b85d
Update CHANGELOG.md 2024-04-29 10:49:40 +02:00
Mark Hughes
7017c73ef8
Provide a useful implementation of something compatible with testing.T (#571)
* Attempting to provide a useful implementation of something compatible with testing.T

* Handle Fail calls on the TestingT in the right place

* Provide as much of testing.T as possible + tidy up

* Add initial tests for testingT support

* Check compatibility with testing.T and friends

Co-authored-by: Piotr Bocheński <bochenski.piotr@gmail.com>

* Update assert-godogs example to show new usage. Rename 'GetTestingT(ctx)' to 'T(ctx)'

* Update changelog and readme with new usage

* Improve test coverage

* Review updates

---------

Co-authored-by: Piotr Bocheński <bochenski.piotr@gmail.com>
2024-04-29 10:26:25 +02:00
Cornel Damian
10407bc5a9
fix invalid memory address or nil pointer dereference when calling TestSuite RetrieveFeatures (#566)
Co-authored-by: Cornel Damian <cornel.damian@adswizz.com>
2024-04-08 14:53:28 +02:00
renovate[bot]
fd3e0d5f9c
chore(deps): update actions/cache action to v4 (#598)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-08 14:48:46 +02:00
renovate[bot]
18088dfc91
chore(deps): update codecov/codecov-action action to v4 (#607)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-08 14:48:09 +02:00
Iaroslav Ciupin
da57dd0766
Fix step duration calculation (#616) 2024-04-08 14:08:21 +02:00
renovate[bot]
153db4eacb
chore(deps): update dominikh/staticcheck-action action to v1.3.1 (#614)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-24 21:40:17 +00:00
Glib Briia
27ad3c245e
Create releasing guidelines (#608) 2024-02-06 14:19:51 +00:00
renovate[bot]
244de8274a
fix(deps): update module github.com/cucumber/godog to v0.14.0 (#610)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-01 22:35:22 +00:00
Glib Briia
757988328b
Prepare CHANGELOG.md for new release (#606) 2024-01-31 16:39:28 +00:00
Glib Briia
250d69ab63
Fixes #604 - remove line overwriting for scenario outlines in cucumber formatter (#605) 2024-01-31 07:04:29 +00:00
Viacheslav Poturaev
5a5631a758
Remove duplicate warning message (#590) 2023-12-07 21:34:04 +01:00