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

49 коммитов

Автор SHA1 Сообщение Дата
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
Matthew Rothenberg
d2eb563953 single randomSeed Option value, handled as flag.Value
Best of both worlds, this allows for a single int64 value in the
Options struct, but at the same time we can do `—random` from command
line with no args and have a default value Chosen.
2017-04-26 12:21:12 -04:00
Matthew Rothenberg
f50c3b5e14 allow setting randomization via flags
allows for setting randomization with flags, but also modifies the
Options struct to now have two separate values

Overall this relates in a much more understandable UI from a user
perspective, since the normal case for randomization will be a user
just saying “run these out of order please” — and in a rare case they
may wish to additionally supply a seed to try to reproduce an older run
to trigger the same error condition.
2017-04-25 14:50:58 -04:00
Matthew Rothenberg
cf6160b3f2 fix deterministic scenario ordering with feature concurrency
while global rand is concurrent safe, since each suite is handling
picking scenario order on it’s own, if running features under
concurrency we cannot guarantee the order Features will execute under,
therefore we have each suite initialize its own randomness Source with
the initial seed, such that their random order selection within a
Feature should always be deterministic when given a specific seed.
2017-04-25 12:33:20 -04:00
Matthew Rothenberg
0eed963c63 switch Random opt from bool to int64
This allows for us to propagate the seed value around, and not have to
have two different values in Options when we want to allow
specification of seed.  It does introduce some “magic values”, but the
document them in the Options struct docstrings.
2017-04-25 11:42:40 -04:00
Matthew Rothenberg
4a754b26a5 allow randomizing scenario order 2017-04-24 21:10:55 -04:00
Stettler, Robert
061d3a3b74 Added support for Docstirngs
Updated lang.feature with the additional cucumber.feature
Updated load.feature with the additional cucumber.feature
Updated events.feature to account for ripple effect of updating lang and load
Updated run.go to indicate that cucumber formatter does not support concurrent.
Updated suite_test.go to handle one new testing step.
2017-02-23 11:49:04 -05:00
gedi
5a471a7e2f closes #60 allows custom formatters to run concurrently 2017-01-16 13:52:58 +02:00
gedi
2e189ad0f9 use Options in FlagSet 2016-11-22 21:12:18 +02:00
gedi
e2069934b3 allow run options to configure output writer 2016-10-30 22:34:39 +02:00
gedi
dcc654c5fb do not exit with error when producing event stream 2016-10-30 18:31:39 +02:00
gedi
1467bfd672 pass in suite name - tested package name 2016-10-30 18:31:39 +02:00
gedi
e71d596404 must be able to customize output for formatters
since it maybe configured by flag values in the future
example:
  - godog -f junit:stdout
  - godog -f junit:output.xml
2016-10-30 18:27:34 +02:00
gedi
49e59d9296 add method to allow running from go source, without flags, see #50 2016-10-28 17:48:39 +03:00
Ed Harper
9264cba300 Add the ability to keep the executable - reflecting **go build -o dest** and skipping execution (as suggested by Gediminas Morkevicius). 2016-10-28 16:47:35 +03:00
gedi
abc6b65c1c sort feature files by path when executing, separate the concurrent runner 2016-06-16 12:01:58 +03:00
gedi
2162380725 closes #39 2016-06-13 23:47:24 +03:00
gedi
9cc301f701 no-colors flag to disable ansi colors, closes #36 2016-06-08 21:38:47 +03:00
gedi
9bde6a2b9b parse flags in runner command, to be able to show version or help, closes #34 2016-06-01 13:51:29 +03:00
gedi
936fd6dadc build test binary instead of single file to execute, use TestMain 2016-05-22 23:27:45 +03:00
gedi
970eddc16a refactor suite runner to support concurrent model
* ef86715 add a concurrency flag
* 8674a58 run suite concurrently, closes #3
2015-07-03 15:54:26 +03:00