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

792 коммитов

Автор SHA1 Сообщение Дата
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
renovate[bot]
592f1cdb71
chore(deps): update actions/setup-go action to v5 (#588)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-07 21:29:50 +01:00
Viacheslav Poturaev
888fe3f294
Improve ErrSkip handling, add test for Summary and operations order (#584) 2023-10-29 22:59:14 +01:00
Kirubel Adamu
25274b0291
updated base formatter to set a scenario as passed unless there exist… (#582) 2023-10-27 19:28:41 +02:00
Viacheslav Poturaev
c61a93931d
Update test.yml (#583) 2023-10-24 00:11:29 +02:00
renovate[bot]
76039dc0d2
chore(deps): update codecov/codecov-action action to v4 (#576)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-14 19:05:33 +02:00
renovate[bot]
4550862450
chore(deps): update actions/checkout action to v4 (#575)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-07 18:56:06 +02:00
renovate[bot]
a37ff90667
fix(deps): update module github.com/cucumber/godog to v0.13.0 (#574)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-23 20:45:17 +00:00
Viacheslav Poturaev
6b96d47e70 Prepare CHANGELOG.md for new release 2023-08-22 14:31:19 +02:00
Viacheslav Poturaev
d3aec7142e
Improve example with concurrency support (#573) 2023-08-22 14:21:34 +02:00
Yury Yurochko
75d5cab90d
fix(examples): update api example (#532) 2023-08-17 11:23:10 +02:00
Viacheslav Poturaev
3e0f9026f3
Improve hooks invocation flow (#568) 2023-07-13 09:31:56 +02:00
Viacheslav Poturaev
51d164ff57 Print verbose error to enable traces 2023-07-07 18:16:21 +02:00
Longyue Li
72db47c519
refactor: test_context.go (#564)
* 1. ScenarioContext has methods on both value and pointer receivers, make all methods have value receivers.
2. fix the syntax error in the comment
3. remove unused function Build

Signed-off-by: longyue0521 <longyueli0521@gmail.com>

* convert ctx (type ScenarioContext) to StepContext

Signed-off-by: longyue0521 <longyueli0521@gmail.com>

* rollback the deleted Build function

Signed-off-by: longyue0521 <longyueli0521@gmail.com>

---------

Signed-off-by: longyue0521 <longyueli0521@gmail.com>
2023-06-07 11:37:46 +02:00
Viacheslav Poturaev
ea50e4bdfc
Use staticcheck GitHub Action (#563) 2023-06-06 16:52:06 +02:00
Viacheslav Poturaev
7f75c5d4ee Remove redundant return 2023-05-26 16:43:48 +02:00
Viacheslav Poturaev
35820ff9fe Reduce deps, fix CI for go1.16, format imports 2023-05-26 16:38:51 +02:00
Viacheslav Poturaev
3eae6c0437 Update dependencies 2023-05-26 14:57:29 +02:00
Viacheslav Poturaev
561cb85371 Add test for context cancellation 2023-04-04 01:30:19 +02:00
Dragan Milic
0dcbfef9be
cancel context for each scenario (#514)
* fix(deps): update module github.com/cucumber/gherkin/go/v26 to v26.1.0 (#549)

* Update CI for go1.20 (#552)

* fix(deps): update module github.com/cucumber/gherkin/go/v26 to v26.1.0

* Tidy modules

---------

Co-authored-by: Viacheslav Poturaev <vearutop@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* cancel context for each scenario

* Update suite.go

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Viacheslav Poturaev <vearutop@gmail.com>
Co-authored-by: Viacheslav Poturaev <nanopeni@gmail.com>
2023-04-04 01:28:03 +02:00
renovate[bot]
472ea2735d
fix(deps): update module github.com/cucumber/gherkin/go/v26 to v26.1.0 (#549)
* Update CI for go1.20 (#552)

* fix(deps): update module github.com/cucumber/gherkin/go/v26 to v26.1.0

* Tidy modules

---------

Co-authored-by: Viacheslav Poturaev <vearutop@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-04 00:43:31 +02:00
Viacheslav Poturaev
aba6a689a4
Update CI for go1.20 (#552) 2023-04-04 00:11:09 +02:00
Tomohiko Himura
dc8c9c4378
Result of testing.T respect strict option (#539)
* test: testing.T.Failed should be false when strict is false and has pending steps

* fix: testing.T respect strict option
2023-04-03 16:05:05 +02:00
Tighearnán Carroll
6ce2b8696b
Use fs.FS abstraction for filesystem (#550)
* compiles

* mock fs in tests

* fix parser tests

* fix run.go

* rename FeatureFS to FS

* fix docs typos

* remove debug log

* add os.DirFS("./") to default options

* reword docstring

* add fs wrapper

* updated readme and changelog

* added note

* fix changelog

* remove ./ gating from defaults

* add new storage.FS tests

* increase coverage of parser.parsePath

* increase coverage of TestSuite.RetrieveFeatures

* remove another os.Stat

---------

Co-authored-by: Tighearnán Carroll <tighearnan.carroll@gamil.com>
2023-03-27 21:52:51 +02:00
Daniel Helfand
3bd9e9ca4f
docs: prefer go test to use of godog cli in README (#548) 2023-03-24 09:19:12 +01:00
renovate[bot]
17f07d243a
chore(deps): update actions/setup-go action to v4 (#546)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-16 21:43:51 +01:00
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