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

805 коммитов

Автор SHA1 Сообщение Дата
renovate[bot]
bcffb1c829
fix(deps): update module github.com/stretchr/testify to v1.8.2 (#541)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-26 18:49:40 +00:00
renovate[bot]
d4d18646f6
fix(deps): update module github.com/data-dog/go-txdb to v0.1.6 (#540)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-24 21:49:25 +00:00
Alexandru Chitu
5368ee0229
docs(*): correct example (#538)
* docs(*): correct example

* docs(*): reorder step declarations
2023-02-21 11:52:24 +00:00
Alexandru Chitu
62d84eedbc
Implement unambiguous keywords (#509)
feat(*): create keyword functions

* chore(*): update messages and gherkin, relocate Keyword

* chore(*): update messages and gherkin, relocate Keyword

* chore(*): update messages and gherkin, relocate Keyword

* feat(*): mandate keyword type when unambiguous keyword function is used

* test(*): keyword type in feature files

* docs(*): update step-by-step walkthrough to mention the option of using keyword functions

* docs(*): update CHANGELOG.md

* test(*): keyword substeps

* chore(*): go mod
2023-01-23 14:22:19 +00:00
M.P. Korstanje
c035051d94
Setup Renovate with default Configs (#531) 2023-01-08 17:53:57 +01:00
renovate[bot]
0892aced88
fix(deps): update module github.com/smartystreets/goconvey to v1.7.2 (#525)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: M.P. Korstanje <rien.korstanje@gmail.com>
2023-01-08 16:47:14 +00:00
renovate[bot]
0fd767543f
fix(deps): update module github.com/spf13/cobra to v1.6.1 (#526)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: M.P. Korstanje <rien.korstanje@gmail.com>
2023-01-08 17:41:08 +01:00
renovate[bot]
2e91c32e91
fix(deps): update module github.com/hashicorp/go-memdb to v1.3.4 (#523)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: M.P. Korstanje <rien.korstanje@gmail.com>
2023-01-08 17:36:50 +01:00
renovate[bot]
70b4f7fecb
fix(deps): update module github.com/go-sql-driver/mysql to v1.7.0 (#524)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-08 17:30:54 +01:00
renovate[bot]
3918bda77b
fix(deps): update module github.com/data-dog/go-txdb to v0.1.5 (#522)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-08 17:30:19 +01:00
renovate[bot]
8cd8a8014a
fix(deps): update module github.com/cucumber/gherkin/go/v26 to v26.0.3 (#519)
* fix(deps): update module github.com/cucumber/gherkin/go/v26 to v26.0.3

* Clean up

* Clean up

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: M.P. Korstanje <rien.korstanje@gmail.com>
2023-01-08 17:27:21 +01:00
renovate[bot]
714af882bf
chore(deps): update actions/cache action to v3 (#527)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-08 17:27:04 +01:00
renovate[bot]
fca3075757
chore(deps): update actions/setup-go action to v3 (#529)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-08 17:26:53 +01:00
renovate[bot]
48af591c17
chore(deps): update actions/checkout action to v3 (#528)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-08 16:26:09 +00:00
renovate[bot]
63d4b1be52
chore(deps): update codecov/codecov-action action to v3 (#530)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-08 17:24:53 +01:00
renovate[bot]
802c8978a2
fix(deps): update module github.com/cucumber/godog to v0.12.6 (#520)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-08 17:20:37 +01:00
renovate[bot]
d7e1e95c04
Add renovate.json (#512)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-08 17:10:16 +01:00
Alexandru Chitu
2264a0037b
chore(*): BREAKING CHANGE, use new repos for cucumber and messages (#515)
* chore(*): use new repos for cucumber and messages

* chore(*): go mod tidy _examples

Co-authored-by: otrava7 <alexandru.chit@gmail.com>
2023-01-05 12:41:56 +01:00
Viacheslav Poturaev
9007f1f26d
Update CHANGELOG.md for release v0.12.6 (#516) 2023-01-05 11:00:23 +01:00
Viacheslav Poturaev
c35ea0b236
Remove deprecation from flags, update example to use CLI flags (#498)
* Remove deprecation from flags, update example to use CLI flags

* Add comment to ShowHelp option

* Fix test

* Update CHANGELOG.md
2022-08-31 10:17:00 +02:00
Viacheslav Poturaev
202882807b
Skip undefined steps in after scenario hooks (#494) 2022-08-16 09:37:33 +02:00
Viacheslav Poturaev
fd5b6a1034
Add gorelease GitHub Action task (#493)
* Add gorelease GitHub Action task

* Update .github/workflows/gorelease.yml

Co-authored-by: Nhat <thmnhat@gmail.com>

Co-authored-by: Nhat <thmnhat@gmail.com>
2022-08-09 16:43:20 +02:00
Viacheslav Poturaev
6f3e792c52
Add deprecation notice to godog CLI (#489)
* Add deprecation notice to godog CLI

* Update CHANGELOG
2022-07-31 15:38:05 +02:00
Aaron Kaswen-Wilk
d45a9aaaa3
add new option for created features with parsing from byte slices (#476) 2022-07-26 15:36:23 +02:00
Wichert Akkerman
b2672bb933
Do not discard context from substeps (#488) 2022-07-25 13:43:36 +02:00
Packet Please
5e176da433
Fix green copypasta (#484) 2022-07-05 08:19:37 +02:00
Brian Hnat
b5400809cd
Update CHANGELOG.md (#482)
Add bug fix from PR #480 to CHANGELOG.md.
2022-06-17 21:10:11 -04:00
Brian Hnat
5d705e5b8e
Pretty Print when using rules (#440) (#480)
* Pretty Print when using rules (#440)

* Pretty Print when using rules (#440)

* fix a few formatting mistakes (#440)

* added test with rule and scenario outline (#440)
2022-06-17 07:32:07 -07:00
Viacheslav Poturaev
c5a86a4e56 Update vulnerable test dependency 2022-05-28 12:03:13 +02:00
Viacheslav Poturaev
99655f7e7e
Update README to reflect current best practices in creating and running tests (#477)
* Update README to reflect current best practices in creating and running tests

* Update CHANGELOG and README

Co-authored-by: Matt Wynne <matt@cucumber.io>
2022-05-21 08:21:41 +02:00
James Cooper
d52a4d3f4d
Fix version subcommand. Do not print usage if run subcommand fails. (#475)
* Fix version subcommand. Do not print usage if run subcommand fails.

* Remove newline to clean up PR diff
2022-05-20 14:18:09 +02:00
Matt Wynne
5793a95e1c
Reformat CHANGELOG.md using standard changelog CLI tool (#474)
* Reformat using standard `changelog` CLI tool

See https://github.com/cucumber/changelog

* Fix missing link to username

* Tidy
2022-04-30 14:43:35 -07:00
Martin de Olmos
4ca5ec040b
Update go version in go.mod (go1.16). Update dependencies (#471)
* Update go version in go.mod (go1.17). Update dependencies.

* Update go version in go.mod (go1.17). Run go mod tidy in _examples.

* Update go version in go.mod (go1.16).

* Update go version in go.mod (go1.16).
2022-04-28 14:36:38 +02:00
Arianna Cooper
1a795f1dde
Fix issue#383 (#468)
* Add example about incorrect project structure

This is to help reproduce #383

* Added some debugging statements

* Update go.sum for example project

* Made a cmd_run_test.go file in order to test and run the builderAndRunGodog function in order to see it fail

* added new assertion test

* Matt and I added debugging

Co-authored-by: Matt Wynne <matt@mattwynne.net>

* Matt and I tried to logging through the cobra command

by using cmd.OutOrStdout( )

* Improved some debugging

* Add a failing test for Builder that reproduces #383

* added new test for IncorrectProjectStructure #383

* Revert "Add a failing test for Builder that reproduces #383"

This reverts commit e5b26933b5d4e979009f8f4341448fa8322720d2.

* ignored vscode files

Co-authored-by: Matt Wynne <matt@cucumber.io>

* undid debugging changes

* undid debugging changes

* removed redundant test

* added check for incorrect project structure

we examined the output from running `go test` which tells us if we didn't
find any test files.
we tweaked the error message to follow the capitalization rules

Co-authored-by: Matt Wynne <matt@cucumber.io>

* Update internal/builder/builder_test.go

Co-authored-by: Matt Wynne <matt@mattwynne.net>
Co-authored-by: Matt Wynne <matt@cucumber.io>
Co-authored-by: Viacheslav Poturaev <nanopeni@gmail.com>
2022-04-28 14:33:24 +02:00
Matt Wynne
237a855127
Replace #StandWithUkraine banner with badge (#470)
As decided at today's community meeting.
2022-04-15 07:59:09 -07:00
Aslak Hellesøy
4f2140a09a
Add Stand With Ukraine badge
See https://github.com/cucumber/cucumber-js/issues/1961
2022-03-31 15:43:06 +01:00
Viacheslav Poturaev
d77238eef3 Prepare for release 2022-03-26 10:18:09 +01:00
Viacheslav Poturaev
6f877d6b03
Fix support for go1.18 (#466) 2022-03-26 10:16:17 +01:00
Ricardo García Fernández
5efecbaf10
Update tests and examples with up to date API (#460) 2022-02-18 18:26:17 +01:00
Carl Menezes
c95871f3ce
Switch from golint to staticcheck (#457)
* Switch from golint to staticcheck

* Remove unused function

run_test.go:618:6: func passingStepDefWithoutReturn is unused (U1000)

* Remove unused function

suite.go:421:6: func isEmptyFeature is unused (U1000)

* Fix unnecessary use of fmt.Sprintf

test_context_test.go:45:66: unnecessary use of fmt.Sprintf (S1039)
test_context_test.go:46:61: unnecessary use of fmt.Sprintf (S1039)

* Fix CI error

https://github.com/cucumber/godog/runs/5146601108?check_suite_focus=true#step:7:28

* Change CI to run staticcheck instead of golint

* Use staticcheck that definitely pass

* Fix CI staticcheck error

https://github.com/cucumber/godog/runs/5147133955?check_suite_focus=true#step:6:17

* Only run staticcheck for Go 1.17

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

* Add staticcheck linux binary

* Update Go module dependencies in _examples

* Use static check binary in bin for CI

* Reduce number of dependencies

Also add a note to CONTRIBUTING.md about the _examples module

* Pin the version of staticcheck

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

Co-authored-by: Matt Wynne <matt@cucumber.io>
Co-authored-by: Viacheslav Poturaev <nanopeni@gmail.com>
2022-02-15 13:37:27 -08:00
Matt Wynne
1c91e6f9ea
Make sure make test runs all tests
Fixes #458
2022-02-14 09:51:17 -08:00
Matt Wynne
2695c3f359
Delete .github/ISSUE_TEMPLATE directory
We can rely on the default templates from https://github.com/cucumber/.github instead
2022-02-10 12:48:22 -08:00
Matt Wynne
1f7231cb42
Delete feature_request.md 2022-02-10 11:42:14 -08:00
Gemini Smith
5001c4f4fe
Change cmd setup to bubble up errors over exiting (#454)
* Change cmd setup to bubble up errors over exiting

* Update main to handle execute error

* Update changelog with PR #454

* Slight cleanup tweaks
2022-01-25 16:52:57 -07:00
Viacheslav Poturaev
30de46da25
Prepare changelog for release 2022-01-12 23:43:48 +01: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
a6fef3f171
Prepare v0.12.3 (#451) 2022-01-05 23:06:58 +01:00
Viacheslav Poturaev
95278dfd39
Automate binary releases (#437)
* Add release assets automation

* Use single module with local replace for examples

* Update CHANGELOG.md

* Allow expected failure for custom formatter example test

* Set version value with ldflags

* Restore artifacts cleanup
2022-01-05 23:00:29 +01:00
Thales Oliveira
1dcc44f35b
Bump version (#450) 2022-01-05 15:08:06 +01:00
Dmitry Savintsev
4d9b548d61
use 'go get' instead of 'go install' to install (#449) 2021-12-29 13:29:50 +01:00