Skip to content

2.0.8

Compare
Choose a tag to compare
@raniejade raniejade released this 06 Oct 07:52
· 59 commits to 2.x since this release
99ccb41

Artifacts are now synced to maven central

See #764 for more details.

Timeouts

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