All Versions
17
Latest Version
Avg Release Cycle
46 days
Latest Release
45 days ago

Changelog History
Page 1

  • v2.0.13

    September 12, 2020

    ๐Ÿš€ This release adds several system properties to control how Spek does discovery and execution.

    0๏ธโƒฃ spek2.discovery.parallel.enabled - controls whether discovery is done in parallel or not, by default it is disabled. The presence of this property regardless of value will enable parallel discovery.

    0๏ธโƒฃ spek2.execution.parallel.enabled - controls whether execution is done in parallel or not, by default it is disabled. The presence of this property regardless of value will enable parallel execution.

    ๐Ÿšš spek2.execution.test.timeout - SPEK2_TIMEOUT is now deprecated (will be removed in 2.1.0) and will be replaced by this property. Controls how long a test can run before timing out, by default it is disabled - i.e tests won't timeout.

    A note for parallel execution

    โœ… Parallelism is at a class level not individual test scopes. Spek uses coroutines under the hood to execute tests in parallel, essentially spek2.execution.parallel.enabled just controls which CoroutineDispatcher is used. For parallel executions Dispatchers.Default is used, otherwise the one provided by runBlocking is used.

  • v2.0.12

    July 05, 2020

    ๐Ÿš€ Patch release that adds support for IJ 2020.2 EAP and AS 4.0. The following AS and IJ versions are no longer supported:

    • Android Studio 3.3
    • Android Studio 3.4
    • IntelliJ IDEA 2018.2
    • IntelliJ IDEA 2018.3
    • IntelliJ IDEA 2019.1
    • IntelliJ IDEA 2019.2
  • v2.0.11

    May 30, 2020
  • v2.0.10

    March 07, 2020

    ๐Ÿš€ This releases add supports for Android Studio 3.6 and IntelliJ IDEA 2020.1

    ๐Ÿ†• New features

    • ๐Ÿ‘Œ Support for Android Studio 3.6
    • ๐Ÿ‘Œ Support for IntelliJ IDEA 2020.1 EAP
    • ๐Ÿ†• New IDE inspection for spek classes without a no-arg constructor not marked abstract or any of the following annotations: @Ignore, @InstanceFactory. (#806)
    • โœ… The IJ test runner now explicitly exits even if there are non-daemon threads around after test execution. (#848)

    ๐Ÿ—„ Deprecations and removals

    • ๐Ÿš€ CachingMode.GROUP has now been deleted, this was deprecated a couple of release ago. (#798)
  • v2.0.9

    December 09, 2019

    ๐Ÿš€ A minor release to support the release of IntelliJ IDEA 2019.3 (see #809).

    ๐Ÿ†• New features

    ๐Ÿ’… (#799) New fixture aliases added to the gherkin style

    ๐Ÿ’… The following aliases are now available in the gherkin style:

    • Scenario.beforeScenario -> Scenario.beforeGroup
    • Scenario.afterScenario -> Scenario.afterGroup
    • โœ… Scenario.beforeEachStep -> Scenario.beforeEachTest
    • โœ… Scenario.afterEachStep -> Scenario.afterEachTest
    • Feature.beforeEachScenario -> Feature.beforeEachGroup
    • Feature.afterEachScenario -> Feature.afterEachGroup
    • Feature.beforeFeature -> Feature.beforeGroup
    • Feature.afterFeature -> Feature.afterGroup

    ๐Ÿ’… The aliased fixtures will be deprecated in the context of the gherkin style.

    ๐Ÿ—„ Deprecations

    (#798) Usage of CachingMode.GROUP is now considered an error

    This mode was replaced by CachingMode.EACH_GROUP on version 2.0.3.

    Others

    • (#820) Bump JUnit Platform dependency to 1.5.2
    • โ™ป๏ธ (#808) Internal refactoring to use coroutines more.
  • 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.