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

715 коммитов

Автор SHA1 Сообщение Дата
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
Viacheslav Poturaev
cdbb0ac3f3 Update documentation 2021-07-22 20:56:26 +02:00
Matt Wynne
48c0e0dd77
Merge pull request #276 from radtriste/issue_222
Added GetGherkinFeatures method to godog.Suite
2021-07-19 12:06:05 -07:00
Matt Wynne
17a562ca79
Merge pull request #407 from vearutop/rel-v0.11.0-main
Merge v0.11.0 release back to main to remove version lag
2021-07-19 10:57:23 -07:00
Viacheslav Poturaev
8860b17e67 Merge branch 'main' into rel-v0.11.0-main
# Conflicts:
#	CHANGELOG.md
#	README.md
2021-07-19 18:12:03 +02:00
radtriste
5566c15759 added GetFeatures method to godog.Suite 2021-07-13 15:00:52 +02:00
tfreville
63fd657a22 test: Add test for stepdef model 2021-07-13 10:35:45 +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
Matt Wynne
3de6fb09f3
Merge pull request #391 from cucumber/flag-to-pflag
remove renamed imports of pflag.
2021-07-12 23:14:48 -07:00
Viacheslav Poturaev
9a335aed22
Merge pull request #404 from vearutop/gofmt
Fix tests and CircleCI jobs
2021-07-09 16:18:16 +02:00
Viacheslav Poturaev
885805bfd3 Remove parallel testing to avoid "go: updating go.mod: existing contents have changed since last read" 2021-07-07 21:06:13 +02:00
Viacheslav Poturaev
15ab3cd84f Remove parallel testing to avoid "go: updating go.mod: existing contents have changed since last read" 2021-07-07 21:01:26 +02:00
Viacheslav Poturaev
bd397253a4 Run "go mod tidy" during build to comply with https://blog.golang.org/go116-module-changes#TOC_3. 2021-07-07 20:45:51 +02:00
Viacheslav Poturaev
f42c85989f Fix home directory for cimg/go:1.16.5 CI image 2021-07-07 20:32:50 +02:00
Viacheslav Poturaev
8af91e50f6 Revert minimal Go version to 1.13 2021-07-07 20:22:32 +02:00
Viacheslav Poturaev
c6e9cd0e19 Revert return logic to restore previous behavior and pass the original test 2021-07-07 20:12:56 +02:00