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

731 коммит

Автор 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
fca7fb6e4a Добавлен Magefile.go 2022-05-28 17:36:13 +03:00
Softonik
8c152351c7 Добавлена генерация русских названий функций 2022-05-28 17:36:13 +03: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
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
Gemini Smith
82bcce7bdc
Add WSL friendly check-go-version setup (#443)
* Add WSL friendly check-go-version setup

* Add changelog entry and update my username

* Add PR link to changelog

* Stop it saying 'noting to be done for check-go-version'

* Update CHANGELOG.md

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

Co-authored-by: Matt Wynne <matt@cucumber.io>
Co-authored-by: Viacheslav Poturaev <vearutop@gmail.com>
2021-12-01 07:22:04 -08:00
Matt Wynne
df294698f5
Update CONTRIBUTING.md 2021-11-17 08:50:20 -08:00
Matt Wynne
1532a1ceba
Allow some coverage drop in PRs too 2021-11-16 17:01:21 -08:00
Matt Wynne
07b9e82910
Try configuring codecov to allow a little bit of coverage drop (#442) 2021-11-16 16:54:43 -08:00
Matt Wynne
477135d2fe
Friendlier contributing guide (#439)
* Use a warmer tone in CONTRIBUTING guide and provide practical help with getting up and running.

* Update instructions to include golint so you can run `make`

* Update CONTRIBUTING.md

Co-authored-by: Aurélien Reeves <aurelien.reeves@smartbear.com>

* Update README.md

Co-authored-by: Aurélien Reeves <aurelien.reeves@smartbear.com>

* Update CONTRIBUTING.md

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

* Remove the need for golint installation instructions

Co-authored-by: Aurélien Reeves <aurelien.reeves@smartbear.com>
Co-authored-by: Viacheslav Poturaev <vearutop@gmail.com>
2021-11-17 00:38:57 +00:00
Viacheslav Poturaev
86a56351ef
Fix compilation for non-modules (#436) 2021-10-14 19:25:30 +02:00
Viacheslav Poturaev
239a42468a Update CHANGELOG for release 2021-08-27 00:11:57 +02:00
Viacheslav Poturaev
953acd5d90
Remove CircleCI tasks (#427) 2021-08-27 00:08:29 +02:00
Viacheslav Poturaev
dfe99eadf5
Run tests in GitHub Actions (#426) 2021-08-26 23:46:03 +02:00
Viacheslav Poturaev
7d984effb3
Run before step hooks before matching (#425)
* Run before step hooks before matching

* Add note to CHANGELOG.md

Co-authored-by: nhatthm <nt@hellofresh.com>
2021-08-24 23:02:41 +02:00
Viacheslav Poturaev
afaebf26c1
Add go1.17 to CI tests (#423) 2021-08-17 11:29:12 +02: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
61730298a5
Add option to run scenarios as *testing.T subtests (#419) 2021-08-11 17:19:05 +02:00
Levi Noecker
c6c2a0885b
Export internal formatters (#372) 2021-08-10 11:27:17 +02:00
Viacheslav Poturaev
ad7feb3298
Add release notes and bump version (#416) 2021-08-09 08:51:27 +02: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
Lorencz Aviale
6fb74a5334
Remove obsolete recommendation from README (#412)
Co-authored-by: Viacheslav Poturaev <vearutop@users.noreply.github.com>
2021-08-03 18:54:01 +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
Karsten Franke
7d343d4e35
Fix step definition output for Data Tables (#411)
* Fix step definition output for Data Tables

This fixes incorrect step definition output for Data Tables. The
PickleStepArgument_PickleTable type does not exist in the current
messages-go version.

* updated CHANGELOG.md
2021-07-29 10:27:00 +02:00
Viacheslav Poturaev
15358d20e7
Merge pull request #364 from cucumber/allow_empty_return_step
feat(step_definition): Allows to define step function without return.
2021-07-22 20:59:48 +02:00