0ecbc58
]a7f8bfb
]7454d00
]9d9403c
]19cca4b
]4cb7441
]go test
(#562) [3cd45fa
]d56ee76
]dbaca8e
]f493786
]505cc35
]0d4f080
]2445fc1
]46bbc26
]39febac
]go vet
to pass [69338ec
]7004cb1
]d848015
]e51bee6
]000d317
]c73579c
]294d8f4
]26d2143
]e873237
, 468e89e
, e37dbfe
, a37f4c0
, c0b857d
, bca5260
, 4177ca8
]747514b
, 7484dad
, 7354a07
, dd826c8
]652e15c
]11459a8
]228e3a8
]43392d5
]8382b23
]-coverprofile
and -outputdir
flags, Ginkgo fails with an error if the directory does not exist. This is due to an issue in go 1.10 (#446) [b36a6e0
]unfocus
command ignores vendor folder (#459) [e5e551c
, c556e43
, a3b6351
, 9a820dd
]7430ca7
, 6d8be98
]2f714bf
, 68f622c
]a5a8ff7
, ab9c08b
]874520d
]ae61c63
]457e2d9
, ba8e856
]9008c7b
, ee65bd, df87dfe
]7d481bc
, ae6829d
]5f49dad
, 528417e
, 0747408, 329d7ed
]b977ede
, 65ca40e
, 6c46eb8
]17f6b97
, bc14b66
, 20d1598
]a299f56
, 44e2eaa
]0bec0b0
, e8536d8
]c0c4881
, 7a241e9
]4b883f0
]ginkgo
now provides a hint if you accidentally forget to run ginkgo bootstrap
to generate a *_suite_test.go
file that actually invokes the Ginkgo test runner. #345go test -c
ginkgo
no longer needs to fix Go's compilation output to ensure compilation errors are expressed relative to the CWD. [#357]ginkgo watch -watchRegExp=...
allows you to specify a custom regular expression to watch. Only files matching the regular expression are watched for changes (the default is \.go$
) [#356]ginkgo
now always emits compilation output. Previously, only failed compilation output was printed out. [#277]ginkgo -requireSuite
now fails the test run if there are *_test.go
files but go test
fails to detect any tests. Typically this means you forgot to run ginkgo bootstrap
to generate a suite file. [#344]ginkgo -timeout=DURATION
allows you to adjust the timeout for the entire test suite (default is 24 hours) [#248]Improvements:
Skip(message)
can be used to skip the current test.extensions/table
- a Ginkgo DSL for Table Driven TestsGinkgoRandomSeed()
- shorthand for config.GinkgoConfig.RandomSeed
--flakeAttempts
ginkgo ./...
now recurses as you'd expectSpecify
a synonym for It
ginkgo
CLIBug Fixes:
panic(nil)
(#167)Improvements
ginkgo -coverpkg
calls down to go test -coverpkg
(#160)ginkgo -afterSuiteHook COMMAND
invokes the passed-in COMMAND
after a test suite completes (#152)ginkgo
now works with Go v1.3+ (#166)Ginkgo now requires Go 1.4+
Improvements:
Improved focus behavior. Now, this:
FDescribe("Some describe", func() {
It("A", func() {})
FIt("B", func() {})
})
will run B
but not A
. This tends to be a common usage pattern when in the thick of writing and debugging tests.
SIGINT
is received, Ginkgo will emit the contents of the GinkgoWriter
before running the AfterSuite
. Useful for debugging stuck tests.--progress
is set, Ginkgo will write test progress (in particular, Ginkgo will say when it is about to run a BeforeEach, AfterEach, It, etc...) to the GinkgoWriter
. This is useful for debugging stuck tests and tests that generate many logs.--dryRun
is set, Ginkgo will walk the spec tree and emit to its reporter without actually running anything. Best paired with -v
to understand which specs will run in which order.By
to help document long It
s. By
simply writes to the GinkgoWriter
.ginkgo build <path-to-package>
will now compile the package, producing a file named package.test
package.test
file can be run directly. This runs the tests in series.ginkgo -p package.test
bootstrap
ping and generate
ing Agouti specs.ginkgo generate
and ginkgo bootstrap
now honor the package name already defined in a given directoryginkgo
CLI ignores SIGQUIT
. Prevents its stack dump from interlacing with the underlying test suite's stack dump.ginkgo
CLI now compiles tests into a temporary directory instead of the package directory. This necessitates upgrading to Go v1.4+.ginkgo -notify
now works on LinuxBug Fixes:
ginkgo -p
would hang if a process spawned by one of the Ginkgo parallel nodes does not exit. (Hooray!)No changes, just dropping the beta.
New Features:
ginkgo watch
now monitors packages and their dependencies for changes. The depth of the dependency tree can be modified with the -depth
flag.FIt
, FDescribe
, etc...) exit with non-zero status code, even when they pass. This allows CI systems to detect accidental commits of focused test suites.ginkgo -p
runs the testsuite in parallel with an auto-detected number of nodes.ginkgo -tags=TAG_LIST
passes a list of tags down to the go build
command.ginkgo --failFast
aborts the test suite after the first failure.ginkgo generate file_1 file_2
can take multiple file arguments.ginkgo --randomizeSuites
will run tests suites in random order using the generated/passed-in seed.Improvements:
ginkgo -skipPackage
now takes a comma-separated list of strings. If the relative path to a package matches one of the entries in the comma-separated list, that package is skipped.ginkgo --untilItFails
no longer recompiles between attempts.It
, BeforeEach
, JustBeforeEach
, AfterEach
, Measure
) is nested within another runnable node. This is always a mistake. Any test suites that panic because of this change should be fixed.Bug Fixes:
ginkgo boostrap
and ginkgo generate
no longer fail when dealing with hyphen-separated-packages
.New Features:
GinkgoParallelNode()
- shorthand for config.GinkgoConfig.ParallelNode
Improvements:
--untilItFails
and ginkgo watch
now generate new random seeds between test runs, unless a particular random seed is specified.Bug Fixes:
-cover
now generates a correctly combined coverprofile when running with in parallel with multiple -node
s.GinkgoWriter
when BeforeSuite
or AfterSuite
fail.Breaking changes:
thirdparty/gomocktestreporter
is gone. Use GinkgoT()
insteadwatch
is now a subcommand, not a flag.DSL changes:
BeforeSuite
and AfterSuite
for setting up and tearing down test suites.AfterSuite
is triggered on interrupt (^C
) as well as exit.SynchronizedBeforeSuite
and SynchronizedAfterSuite
for setting up and tearing down singleton resources across parallel nodes.CLI changes:
watch
is now a subcommand, not a flag--nodot
flag can be passed to ginkgo generate
and ginkgo bootstrap
to avoid dot imports. This explicitly imports all exported identifiers in Ginkgo and Gomega. Refreshing this list can be done by running ginkgo nodot
--
separator--skipPackage
flag takes a regexp and ignores any packages with package names passing said regexp.--trace
flag prints out full stack traces when errors occur, not just the line at which the error occurs.Misc:
Major refactor:
internal
example
everywhere to spec