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

267 коммитов

Автор SHA1 Сообщение Дата
gedi
385444d0e0
closes #72 2017-08-31 16:52:21 +03:00
gedi
4dc98b0e2b
closes #96 2017-08-31 16:20:30 +03:00
gedi
0b4523c009
closes #98 2017-08-31 10:31:25 +03:00
gedi
db3c6246b8
closes #97 2017-08-31 09:30:17 +03:00
gedi
aea8188613
improves builder to use go env in order to find compiler and linker,
closes #64
2017-08-02 11:03:24 +03:00
gedi
c316cae832
should resolve #94 2017-07-22 14:08:07 +03:00
gedi
70f777599d
closes #92 2017-07-02 19:22:23 +03:00
gedi
e82f88d590
closes #90 2017-06-22 13:23:56 +03:00
gedi
bfe2b72dcb
updates travis to check formatting and run latest versions 2017-06-09 11:45:38 +03:00
gedi
aac216500e
nested multi line steps with table or content body argument #89 2017-06-09 11:42:28 +03:00
gedi
b10470da31
closes #86 2017-05-24 16:04:43 +03:00
Gediminas Morkevicius
b4a371731c Merge pull request #84 from mroth/relax-suitecontext
relax suite context matcher language
2017-05-06 11:56:04 +03:00
Matthew Rothenberg
299762e5b1 relax suite context matcher language
This slightly relaxes the language for the SuiteContext matchers, so
that whether one starts the step with “a …” or not it will match either
way.

(It also eliminates one duplicate matcher that essentially did the same
thing without a regex.)
2017-05-05 22:11:10 -04:00
gedi
2f95563bb4
compatibility with godog cli 2017-05-05 23:37:57 +03:00
Gediminas Morkevicius
4af9c12d7b Merge pull request #82 from mroth/reusable-metatesting
Reusable metatesting for add-on developers
2017-05-05 23:21:32 +03:00
Matthew Rothenberg
43dd0a1df3 fix line numbers in test after rebase 2017-05-05 13:44:48 -04:00
Matthew Rothenberg
fe33ed6e75 update godoc description 2017-05-05 11:40:35 -04:00
Matthew Rothenberg
fd1b376057 fix pre-existing typo 2017-05-05 11:40:35 -04:00
Matthew Rothenberg
ef0216a8bc add a general purpose "all steps" test 2017-05-05 11:40:35 -04:00
Matthew Rothenberg
304f1ea232 allow additional context initializers to be passed to SuiteContext
enables developers to inject extra context into the test environment
when running suites in meta-tests.
2017-05-05 11:40:35 -04:00
Matthew Rothenberg
2b109b5ea8 move SuiteContext out of _test namespace
This allows it to be easily re-used in other libraries to do
meta-testing on their own godog features/steps.

At some point it may make sense to migrate this entirely to a
sub-package of godog, however that would require a larger
re-architecting of the project structure to avoid circular dependencies
(e.g. `import cycle not allowed`).
2017-05-05 11:40:35 -04: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
f87d99d0aa
fixes a bug, when there are undefined steps after failing step #80 2017-05-04 11:02:01 +03:00
gedi
865c0c18b6
updates api example json matcher 2017-05-03 14:46:10 +03:00
gedi
f3b7331cea
updates documentation in README 2017-04-30 20:20:00 +03:00
gedi
a0ae829d54
updates readme with selenium related integration references 2017-04-29 23:36:13 +03:00
Gediminas Morkevicius
38e3d1fb6d Merge pull request #79 from DATA-DOG/multistep
implements convenient multistep definition
2017-04-29 23:12:28 +03:00
gedi
f09230a6fd
updates readme and changelog 2017-04-29 23:09:32 +03:00
gedi
e4ed3b9a9c
handles undefined step templates for nested steps 2017-04-29 22:56:28 +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
ba80ebcd33
implements multistep - initial attempt 2017-04-28 22:04:49 +03:00
gedi
88d441e5ce
improves stepdef test coverage 2017-04-28 18:11:02 +03:00
gedi
7474489b9c
tests progress formatter output production 2017-04-28 16:37:36 +03:00
gedi
b41f349e3c
fixes time.Duration zero formatted value matching 2017-04-28 15:56:22 +03:00
gedi
df5310a062
tests junit formatter 2017-04-28 15:46:11 +03:00
gedi
ef794d57ca
resets time to zero for all godog tests 2017-04-28 10:57:09 +03:00
gedi
d3cf314381
fixes stack trace test 2017-04-28 10:54:24 +03:00
gedi
d5a7e38a81
tests printing step definitions and stacktrace formatting 2017-04-28 09:46:17 +03:00
gedi
83675453b7
runs tests with randomized scenario order, adds verbose mode 2017-04-27 17:43:00 +03:00
gedi
90b8d3bfe7
tests flags and binary builder 2017-04-27 17:26:43 +03:00
gedi
169d617b26
removes sorting feature files, accepts them by given order, closes #78 2017-04-27 17:25:21 +03:00
Gediminas Morkevicius
0b640526cf Merge pull request #76 from mroth/randomize-order
allow randomizing scenario order
2017-04-27 17:13:04 +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