https://kotlinlang.org logo
Join SlackCommunities
Powered by
# spek
  • r

    raniejade

    03/09/2020, 2:30 AM
    Hey all! Spek
    2.0.10
    is out, the release just adds support for AS 3.6 and IJ 2020.1 (and a couple more fixes) More details here: https://github.com/spekframework/spek/releases/tag/2.0.10.
  • r

    raniejade

    03/09/2020, 2:33 AM
    I'll be starting working on
    2.1.0
    next, which means
    2.0.10
    will probably be the last patch release for the
    2.0
    line.
    2.1.0
    will be focused on adding truly multiplatform support.
    2.x
    branch already has support for running tests for KN (added by @charleskorn) - but it still lacks IDE support.
  • r

    raniejade

    03/09/2020, 2:34 AM
    Additionally
    2.1.0
    will include https://github.com/spekframework/spek/pull/835 - which integrates coroutines to spek (making it easier to run suspended functions).
    🎉 2
  • a

    Ahmed Ibrahim

    03/21/2020, 1:12 PM
    Anyone is facing an issue, where instant error highlighting stops working while typing Spek tests? I have to run the test first to get the compile error under the Build Output panel before Android Studio starts highlighting the error.
    r
    j
    • 3
    • 9
  • s

    Stanislav Sagajnov

    03/28/2020, 3:46 PM
    Hi everyone, does anyone of you know how to generate feature files from Spek tests?
  • a

    Ahmed Ibrahim

    04/08/2020, 11:54 AM
    @raniejade I'm wondering, any ETA for this PR to be released? It would be nice to have suspend lambdas, rather than keep doing
    runBlocking { assertion }
    https://github.com/spekframework/spek/pull/835
    r
    • 2
    • 2
  • d

    dnowak

    04/22/2020, 11:03 PM
    Hi, does anyone have a working example of a test using Mockk’s
    mockkStatic
    ? I can’t make it work with Spek. In JUnit
    mockkStatic
    works fine.
    r
    • 2
    • 6
  • s

    snowe

    05/02/2020, 4:32 AM
    did something change with the intellij plugin to cause it to not pick up spek tests anymore? The only way I can run them is by running a whole folder at once, which kinda sucks when you're trying to debug something.
    r
    s
    c
    • 4
    • 11
  • a

    Arnab Datta

    05/25/2020, 1:25 PM
    I’m currently migrating from spek1 to spek2:
    Copy code
    <dependency>
          <groupId>org.spekframework.spek2</groupId>
          <artifactId>spek-dsl-jvm</artifactId>
          <version>${spek.version}</version>
          <scope>test</scope>
          <type>pom</type>
        </dependency>
        <!-- <https://mvnrepository.com/artifact/org.spekframework.spek2/spek-runner-junit5> -->
        <dependency>
          <groupId>org.spekframework.spek2</groupId>
          <artifactId>spek-runner-junit5</artifactId>
          <version>${spek.version}</version>
          <scope>test</scope>
        </dependency>
    This results in none of my tests being run, as they aren’t found. What’s going on?
    r
    • 2
    • 2
  • a

    andylamax

    06/18/2020, 9:57 PM
    Hello there, Since spek is now multiplatform, when will it run js tests?
    r
    • 2
    • 2
  • a

    Aditya

    06/30/2020, 7:55 PM
    I noticed this issue related to the IJ version and spec version compatibility on looking through past issues. Still seeing it however after keeping both the IJ and spek version to 2.0.11 java.lang.NoSuchMethodError: org.spekframework.spek2.runtime.execution.DiscoveryRequest.<init>(Lorg/spekframework/spek2/runtime/discovery/DiscoveryContext;Ljava/util/List;)V at org.spekframework.ide.Spek2ConsoleLauncher.run(console.kt:20) at org.spekframework.ide.ConsoleKt$main$1.invoke(console.kt:45) at org.spekframework.ide.ConsoleKt$main$1.invoke(console.kt) at shadow.com.xenomachina.argparser.SystemExitExceptionKt.mainBody(SystemExitException.kt:74) at shadow.com.xenomachina.argparser.SystemExitExceptionKt.mainBody$default(SystemExitException.kt:72) at org.spekframework.ide.ConsoleKt.main(console.kt:43)
    r
    • 2
    • 6
  • d

    dnowak

    07/01/2020, 9:51 AM
    Hello, I would like to switch to IDEA 2020.2 EAP, but I need Spek plugin to run tests. Could somebody tell me, please, how to build the plugin locally with support for IDEA 2020.2?
    r
    • 2
    • 3
  • e

    electrolobzik

    07/01/2020, 5:16 PM
    Is here anybody using Atrium with Spek on Android Studio?
  • e

    electrolobzik

    07/01/2020, 5:17 PM
    I am facing the issue that one of dependencies (atrium-core-robstoll-lib) is not on the classpath and running test fails with exception. But when I run the test with gradle - it works fine.
  • e

    electrolobzik

    07/01/2020, 5:18 PM
    I have AS 4.0 and Spek Framework plugin 2.0.11-IJ2019.3
  • e

    electrolobzik

    07/02/2020, 8:58 AM
    Maybe this information would be useful for the Spek developers. @robstoll was able to reproduce the error: “Seems like spek is a using the wrong classpath and is not resolving all transitive runtimeOnly dependencies (maybe this is a bug of Android Studio)”
    r
    r
    • 3
    • 10
  • b

    Bruno_

    07/14/2020, 1:24 PM
    am I doing something wrong or is it normal that 100 lines long spec (1x
    describe
    and 5x
    it
    ) takes awfully long for syntax highlighting to kick in? anywhere between 10-20s is it even related to spek or is it kotlin compiler issue? I've tried searching this channel for solutions but haven't found anything
    r
    c
    • 3
    • 6
  • m

    matthew graf

    07/14/2020, 10:30 PM
    Is this still the standard way to run suspending functions in Spek test? (Using
    runBlocking
    )
    Copy code
    Then("event store should be empty") {
            runBlocking {
              // findAll is a suspending function
              eventStore.findAll().shouldBeRight { it.shouldBeEmpty() }
            }
          }
    Its not the biggest deal, although it does make some tests a bit more verbose. I see some talk about this in the channel history but wasn’t sure if this was still the cleanest way to do it
    r
    • 2
    • 1
  • a

    Ahmed Ibrahim

    08/13/2020, 1:07 PM
    What would be a better practice with Spek?
    object MyTestCase : Spek({})
    vs
    class MyTestCase : Spek({})
    d
    r
    • 3
    • 7
  • d

    dnowak

    11/27/2020, 10:55 AM
    Hi, any plans to release a new plugin version supporting IDEA 2020.3?
    r
    • 2
    • 3
  • s

    Shalom Halbert

    12/13/2020, 7:14 PM
    Hey folks, what are the differences between Kotest and Spek? Cross-posted in #kotest
  • r

    robstoll

    02/07/2021, 7:21 PM
    When will spek be available from maven central? It seems like 2.0.10, 2.0.11 and 2.012 have not been published to maven central
  • r

    robstoll

    02/07/2021, 7:24 PM
    ah... found the corresponding isssue on github: https://github.com/spekframework/spek/issues/949
  • r

    raniejade

    03/06/2021, 7:16 AM
    Hey folks! Due to my interests shifting and a burning drive to do something else - I've decided to step down as maintainer and start looking for new ones: https://github.com/spekframework/spek/issues/959 - if you know anyone that is interested please let me know. I'll be sticking for a while until a new maintainer (or more) is found.
    🙏 2
    g
    • 2
    • 5
  • v

    Vitor Prado

    03/29/2021, 2:35 PM
    (multiplatform question) Can I run spek on
    commonTest
    ? or should I create tests only on android/jvm test folders?
    r
    • 2
    • 2
  • r

    robstoll

    08/09/2021, 8:28 AM
    When is the Spek plugin for intellij 2021.2 released?
    r
    • 2
    • 1
  • r

    robstoll

    01/27/2022, 8:21 PM
    @gammax looks like you are the moderator of this channel. Do you also coordinate development?
    g
    • 2
    • 1
  • v

    v79

    06/10/2022, 6:40 AM
    Does anyone have experience combining spek with koin? They seem incompatible.
    d
    • 2
    • 2
  • d

    Dennis Schröder

    10/20/2022, 9:36 AM
    Hey folks, is there any way to group tests and run those groups separately from the command line? Like Junit's
    @Tag("integration")
    annotation and then run
    ./gradlew test -DexcludeTags="integration"
    to run only all other tests.
  • e

    electrolobzik

    12/20/2023, 7:11 PM
    Is the Spek project alive? Or does it have some replacement?
    👍 1
    b
    • 2
    • 24