All Versions
12
Latest Version
Avg Release Cycle
36 days
Latest Release
17 days ago

Changelog History
Page 1

  • v2.0.8

    October 06, 2019

    🔀 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
  • v2.0.7

    September 05, 2019
  • v2.0.6

    July 28, 2019
    • ✅ (#706) Provide Kotlin JS and Kotlin Native artifacts for spek-dsl (running tests on those platform is not supported yet).
    • 👍 (#712) Support AS 3.5 Beta
    • ⬆️ (#720) Upgrade to the latest classgraph version.
    • 👍 (#738) Support IntelliJ IDEA 2019.2
    • 💅 (#714) Fail fast gherkin style.
  • v2.0.5

    May 29, 2019
    • 👍 Allow timeouts to be customized (specification + gherkin style)
    • 👌 Support AS 3.4.1
    • 👀 Make IJ plugin more lenient about unsupported kotlin platforms (see #704)
  • v2.0.4

    May 08, 2019

    🚑 The following critical bug fixes are included in this release:

    • ✅ (#684) failed assertions yields a passing test.
    • (#682) Kotlin reflection errors.
  • v2.0.3

    April 30, 2019

    🆕 New features

    ✅ Test timeouts (#647)

    🏗 The test scope builders (it, Given, When, Then and And) now have an optional parameter timeout that controls how long this test should run until a timeout is issued. The default timeout is 10 seconds.

    Known issues

    • 🔌 IDE plugins now require Kotlin plugin 1.3.30+ installed.
    • 📦 Run tests in a package provided by the Spek plugin does not work most of the time (still investigating), in the meantime use Run tests in package functionality provided by IJ or AS.
    • 🔌 2.0.3 IDE plugins are not backward compatible, please use the same version for the project dependency.

    🗄 Deprecations

    • 🗄 (#668) Deprecated CachingMode.GROUP in favor of CachingMode.EACH_GROUP.

    Other changes

    • 🛠 (#649) Another round of discovery bug fixes.
    • 📦 (#666) Fix run tests in a package.
    • ⬆️ (#674) Upgrade to Kotlin 1.3.30.
    • ⚡️ (#676) Update build ranges to support latest Android Studio 3.4.
  • v2.0.2

    April 08, 2019

    🚀 Another bug fix release for the 2.x release train. See 2.0.2 milestone for more details!

  • v2.0.1

    March 02, 2019

    🛠 First bugfix release in the 2.x line.

    🛠 Fixing #606 required making some incompatible changes between 2.0.1 runtime and 2.0.0 IJ plugin, please hold off from upgrading to 2.0.1 until the IJ plugin is available (it usually takes a few hours as JB needs to manually approve them first). If you have existing run configurations created using the 2.0.0 IJ plugin, you need to recreate them. Apologies for any inconvenience this has caused!

    🛠 Fixes

    • 🏁 (#563) NoClassDefFoundError when using mocks and running spek from IntelliJ on a Windows machine
    • ✅ (#574) Couldn't run test clicking in the greens arrows alongside of the class
    • 📦 (#606) Error "No test were found" when running tests from a package that contains other packages
  • v2.0.0

    February 03, 2019

    What's new?

    💥 Breaking changes

    👀 See https://spekframework.org/breaking-changes/

    Migration guide

    👀 See https://spekframework.org/migration/

    The list of issues and features included can be found in the following milestones:

  • v2.0.0-rc.1

    September 30, 2018

    🚀 First release candidate for Spek 2.x.

    • ➕ Add preserveExecutionOrder flag, to guarantee the order of execution (#497)
    • 🚀 Deploy separate plugins for the different AS versions (#481)
    • ➕ Add/fix docs and samples.