ginkgo v1.2.0-beta Release Notes
-
Ginkgo now requires Go 1.4+
๐ Improvements:
- 0๏ธโฃ Call reporters in reverse order when announcing spec completion -- allows custom reporters to emit output before the default reporter does.
๐ Improved focus behavior. Now, this:
FDescribe("Some describe", func() { It("A", func() {}) FIt("B", func() {}) })
will run
B
but notA
. This tends to be a common usage pattern when in the thick of writing and debugging tests.- โ
When
SIGINT
is received, Ginkgo will emit the contents of theGinkgoWriter
before running theAfterSuite
. Useful for debugging stuck tests. - โ
When
--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 theGinkgoWriter
. This is useful for debugging stuck tests and tests that generate many logs. - ๐ Improved output when an error occurs in a setup or teardown block.
- When
--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. - โ Add
By
to help document longIt
s.By
simply writes to theGinkgoWriter
. - โ Add support for precompiled tests:
ginkgo build <path-to-package>
will now compile the package, producing a file namedpackage.test
- The compiled
package.test
file can be run directly. This runs the tests in series. - To run precompiled tests in parallel, you can run:
ginkgo -p package.test
- ๐ Support
bootstrap
ping andgenerate
ing Agouti specs. - ๐ฆ
ginkgo generate
andginkgo bootstrap
now honor the package name already defined in a given directory - โ
The
ginkgo
CLI ignoresSIGQUIT
. Prevents its stack dump from interlacing with the underlying test suite's stack dump. - โฌ๏ธ The
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 Linux
๐ Bug Fixes:
- ๐ฆ If --skipPackages is used and all packages are skipped, Ginkgo should exit 0.
- ๐ Fix tempfile leak when running in parallel
- ๐ Fix incorrect failure message when a panic occurs during a parallel test run
- ๐ Fixed an issue where a pending test within a focused context (or a focused test within a pending context) would skip all other tests.
- Be more consistent about handling SIGTERM as well as SIGINT
- โ When interrupted while concurrently compiling test suites in the background, Ginkgo now cleans up the compiled artifacts.
- ๐ Fixed a long standing bug where
ginkgo -p
would hang if a process spawned by one of the Ginkgo parallel nodes does not exit. (Hooray!)