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

70 коммитов

Автор SHA1 Сообщение Дата
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
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
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
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
Aaron Kaswen-Wilk
d45a9aaaa3
add new option for created features with parsing from byte slices (#476) 2022-07-26 15:36:23 +02: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
61730298a5
Add option to run scenarios as *testing.T subtests (#419) 2021-08-11 17:19:05 +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
radtriste
5566c15759 added GetFeatures method to godog.Suite 2021-07-13 15:00:52 +02:00
Aslak Hellesøy
7cadaeffdb
Merge pull request #392 from vearutop/multi
Use multiple formatters in the same test run
2021-07-07 16:32:58 +01:00
MBow
5414f3c5da update gherkin-go to v19.0.3
update messages-go to v16.0.1
bump gomod version
comment on log line in std os.Stderr
examples to non rc version
go mod tidy
update circle (tbd)
2021-06-28 17:19:43 +01:00
Viacheslav Poturaev
9d4b221f7a Use multiple formatters in the same test run 2021-05-30 22:11:44 +02:00
Fredrik Lönnblad
66793de350
Merge pull request #321 from cucumber/new-flag-pkg
Added Cobra for the Command Line Interface
2020-10-08 18:35:06 +02:00
Fredrik Lönnblad
d0991c8488 --format junit:result.xml will now write to result.xml 2020-07-08 23:08:49 +02:00
Fredrik Lönnblad
722d97bc48 Added Cobra for the Command Line Interface 2020-07-07 21:13:25 +02:00
Fredrik Lönnblad
813312606f Moved the parser code to a new internal pkg 2020-07-05 18:40:56 +02:00
Fredrik Lönnblad
150c400163 Created internal packages for formatters, storage and models 2020-07-02 08:51:31 +02:00
Fredrik Lönnblad
99723f8220 Moved the builder code to a new internal pkg 2020-07-01 07:54:59 +02:00
Fredrik Lönnblad
dbd8cdf723 Removed deprecated code 2020-06-27 19:13:38 +02:00
Fredrik Lönnblad
7df9dadeb9 Fixed so that we don't execute features with zero scenarios 2020-06-23 19:53:46 +02:00
Fredrik Lönnblad
376280cfc6 Fixed the broken --random flag 2020-06-21 14:43:15 +02:00
Fredrik Lönnblad
39940f55bc Added support for concurrent scenarios 2020-06-14 19:21:01 +02:00
Fredrik Lönnblad
b717039e16 Refactored some states in the formatters and feature struct 2020-06-14 09:49:22 +02:00
Fredrik Lönnblad
25b1915272 Broke out some code from massive files into new files 2020-06-13 09:20:06 +02:00
Fredrik Lönnblad
b1a69ae142 Added features to the in-mem storage 2020-06-13 06:45:14 +02:00
Fredrik Lönnblad
cd7663fccf Added Pickle and PickleStep results to the in-mem storage 2020-06-10 21:45:23 +02:00
Fredrik Lönnblad
4356addf9f Added an in-mem storage for pickles 2020-06-09 13:30:32 +02:00
Fredrik Lönnblad
e6227a2e0f Added the new TestSuiteInitializer and ScenarioInitializer 2020-05-18 09:48:06 +02:00
Fredrik Lönnblad
edfd2a1c3a Updated so that we run all tests concurrent now 2020-03-26 12:40:15 +01:00
Fredrik Lönnblad
d6f491a3dc Added concurrency support to the cucumber formatter 2020-03-26 12:18:01 +01:00
Fredrik Lönnblad
172b91ea58 Added concurrency support to the events formatter 2020-03-26 12:11:45 +01:00
Fredrik Lönnblad
2deda99861 Added concurrency support to the pretty formatter 2020-03-26 11:56:28 +01:00
Fredrik Lönnblad
11f28803ec Added comparison between single and multi threaded runs 2020-03-24 12:01:58 +01:00
Eric McBride
94054ac374 Re enable custom formatters 2020-02-29 08:22:52 -06:00
Jayson Smith
b9b8a8cd4f Change data-dog/godog references to cucumber/godog
* update makefile
2020-02-06 08:38:28 -07:00
Fredrik Lönnblad
1a762a8938 Refactored basfmt and junitFormatter to support concurrency 2020-01-19 11:10:53 -03:00
funvit
652eedf03a fix for progress printing with concurrency mode 2019-09-02 21:58:26 +03:00
funvit
0d22f34c56 fix: added panic if type assertions failed 2019-08-31 19:26:57 +03:00
funvit
b730b9fd4b fix for progress formatter summary in concurrency mode
see: https://github.com/DATA-DOG/godog/issues/161
2019-08-31 17:40:34 +03:00
gedi
cb8e8cae52
closes #146 2018-11-26 09:48:18 +02:00
gedi
92660751ca
fixes an issue with random seed env var 2018-11-13 10:10:44 +02:00
gedi
4df893dd4a
expose FindFmt function to search for available formatter
closes #130
2018-07-31 14:55:36 +03:00
gedi
4dc98b0e2b
closes #96 2017-08-31 16:20:30 +03:00
gedi
92fbee719c
tests suite execution function and related errors 2017-05-05 11:04:54 +03:00
gedi
8e9c01d484
gets rid of fatal func, which exits application on unexpected error 2017-05-04 21:11:46 +03:00
gedi
a3338b5849
adds --strict flag to fail suite when there are pending or undefined steps 2017-05-04 20:25:29 +03:00
gedi
5bfd57218a
adds more tests for multistep execution 2017-04-29 00:13:14 +03:00
gedi
703b40de76
adds scenarios to test nested steps 2017-04-28 22:04:49 +03:00
gedi
d5a7e38a81
tests printing step definitions and stacktrace formatting 2017-04-28 09:46:17 +03:00
gedi
201677e152 prints random seed in formatter summary 2017-04-27 09:54:13 -04:00