spek v2.0.8 Release Notes

Release Date: 2019-10-06 // almost 2 years ago
  • ๐Ÿ”€ Artifacts are now synced to maven central

    ๐Ÿ‘€ See #764 for more details.


    ๐Ÿš€ Test timeouts were added in 2.0.3 but it was hard to configure and there was no way to disable it - causing issues when using a debugger. This release includes several improvements to this feature.

    Setting timeouts globally

    ๐Ÿ”ง (#769) On the JVM the global timeout can be configured via the system property SPEK_TIMEOUT

    Disable timeouts

    โฑ (#792) A value of 0 will disable the timeout.

    ๐Ÿ›  Fixtures

    ๐Ÿ†• New fixtures

    (#670) beforeEachGroup and afterEachGroup fixtures are now available. They are invoked for every group including the group where they are declared (similar to how CachingMode.EACH_GROUP works).

    ๐Ÿ—„ Deprecation

    ๐Ÿ’… (#787) The fixture aliases before, after, beforeEach and afterEach in the specification style are now deprecated.

    Scope value (aka memoized) access are now stricter

    ๐Ÿ‘€ (#789) Scope values will now throw an exception when accessed in the wrong context. A good example is accessing a scope value with CachingMode.TEST in a beforeGroup fixture. See ticket for the motivation and more details.

    โœ… LifecycleListener now reports test failures.

    ๐Ÿ‘€ See #761 for the motivation and more details.

    ๐Ÿ›  Other fixes/changes

    • (#737) Validating a return value examples show use of lateinit on primitives which throws a compiler error
    • โœ… (#750) Allow running tests on source root
    • ๐Ÿ“ฆ (#763) Run all specs in a package of a common module
    • ๐Ÿ”ง (#794) Improve how run configurations are named