https://kotlinlang.org logo
Join SlackCommunities
Powered by
# kotest-contributors
  • e

    Emil Kantis

    01/18/2025, 9:31 PM
    Anything I can do to help?
  • s

    sam

    01/20/2025, 2:15 AM
    You can help test once I have something shippable - give me a couple more days and we should be able to test in anger
  • s

    sam

    01/20/2025, 2:28 AM
    Actually one thing I need to figure out, that if you wanted to do that, would be helpful: • work out how to detect if a dependency is on the classpath for a gradle
    module
    before the plugin is applied (only want to apply the gradle plugin to modules that have kotest on the classpath)
    a
    e
    • 3
    • 45
  • s

    sam

    01/20/2025, 2:30 AM
    Also trying to figure out what
    org.jetbrains.kotlin.analysis.api.impl.base.sessions.ProhibitedAnalysisException: Analysis is not allowed: Called from a write action.
    means. I have asked in jetbrains intellij slack but no reply so far.
    e
    • 2
    • 4
  • s

    sam

    01/21/2025, 4:21 PM
    if anyone wants to test out the new kotest intellij and gradle plugin combo, I can give you a build. It's rough but works.
    e
    a
    • 3
    • 5
  • s

    sam

    01/23/2025, 4:17 AM
    Gradle question, I think @Adam S might be the best person to answer. Inside a gradle plugin task, how do I get the source sets? Specifically, I am trying to get a handle to the "test" sourceset. At the moment I am looking for the JavaPluginExtension, and getting it from that, but this fails for android. Follow up question - when you have a layout like say
    src/main/java
    and
    src/main/kotlin
    and
    src/main/scala
    is "main" the sourceset, or is java kotlin scala the sourcesets?
    e
    a
    l
    • 4
    • 12
  • s

    sam

    01/27/2025, 4:00 AM
    Here are the latest builds of the intellij plugin if you want to try the new gradle plugin. After installing these, take the latest kotest snapshot or build from source, and add
    io.kotest
    as a plugin to each gradle module you want to run kotest in. Then you should see
    kotest
    as a task in the gradle task list. Running tests from intellij should go via this new plugin and appear in the IDE automatically with full navigation to all nested levels, as well as using gradle to run all tests instead of a forked java process. I imagine they'll be edge cases that don't appear on my machine 🙂 Please file on the kotest board so I can address.
    kotest-intellij-plugin-1.3.0-SNAPSHOT-2024.1.zipkotest-intellij-plugin-1.3.0-SNAPSHOT-2024.2.2.zipkotest-intellij-plugin-1.3.0-SNAPSHOT-2024.3.1.zip
    e
    • 2
    • 2
  • s

    sam

    01/28/2025, 12:00 PM
    Couple of gradle questions for the experts 🙂 1. How do I configure a task as I register it, since we can't pass constructor args? If I make an internal field, gradle wants to treat it as an @Input.
    Copy code
    project.tasks.register(JVM_TASK_NAME, KotestJvmTask::class.java) {
                setme = "hello" // how to do this?
             }
    2. I want to make a task that just executes other tasks. Eg I want to register say "uberkotest" which runs "kotestA" and "kotestB". All three tasks are created in the same plugin.
    l
    a
    • 3
    • 11
  • s

    sam

    02/01/2025, 4:19 PM
    I'm aiming to cut M2 today
    a
    • 2
    • 27
  • s

    sam

    02/01/2025, 7:42 PM
    What do we think about bumping min jdk to 11 for kotest 6? There's a library I want to use that's only available on java 11, and you can run your tests on 11 but compile to 8 if you really want anyway.
    e
    a
    • 3
    • 9
  • a

    Adam S

    02/02/2025, 9:40 AM
    @sam thinking about it, looking at https://github.com/Kotlin/kotlinx-benchmark could help with how Kotest could support KMP targets. It's the exact same situation: discover and launch tests without using JUnit. For JVM it uses JMH, but the other targets have a custom implementation using a compiler plugin and code generation. However, I know the compiler plugin is overkill and could be replaced with KSP.
    thank you color 1
    s
    • 2
    • 2
  • s

    sam

    02/02/2025, 7:17 PM
    @Adam S should I wait for the plugin changes v2 before cutting M2 ?
    a
    • 2
    • 5
  • e

    Emil Kantis

    02/02/2025, 7:44 PM
    Is there any interest in trying to get the remote build cache working again? Otherwise I’ll delete that server :)
    s
    • 2
    • 2
  • s

    sam

    02/02/2025, 7:49 PM
    did you get around to trying the new plugin ? Or waiting for M2
    e
    • 2
    • 3
  • s

    sam

    02/02/2025, 8:10 PM
    I think this issue was caused by changing the BOM here. Anyone got pointers on how I can start to fix it? And as the original thread author mentions, should we just replace the BOM with a gradle version catalog?
    l
    e
    • 3
    • 9
  • s

    sam

    02/04/2025, 11:25 AM
    6.0.0.M2 is published
    kotest intensifies 5
    👍🏼 1
    e
    • 2
    • 20
  • s

    sam

    02/04/2025, 1:15 PM
    JS tests running through our custom plugin, with support for nesting at all levels and all the other good stuff.
    🙌 2
    🙌🏼 1
  • e

    Emil Kantis

    02/04/2025, 9:50 PM
    Ran into another issue w/ Kotest 6.0.0.M2 w/ gradle plugin in a project that uses kotest-extensions-wiremock. 🧵
    s
    • 2
    • 3
  • e

    Emil Kantis

    02/04/2025, 9:56 PM
    Why is
    afterTest
    showing as
    @KotestInternal
    in 6.0.0.M2? Should I report an issue?
    s
    • 2
    • 1
  • e

    Emil Kantis

    02/12/2025, 1:47 PM
    Are we gonna merge
    StringSpec
    ,
    WordSpec
    and
    FreeSpec
    in 6.0?
  • l

    LeoColman

    02/12/2025, 1:47 PM
    We were locked out of doing this by gradle. If we are moving away from gradle in favor of Kotest plugin we can do the merge
    e
    s
    • 3
    • 11
  • a

    Adam S

    02/12/2025, 2:25 PM
    fyi Gradle 8.13 has a new API for reporting tests. Kotest could use it to report tests directly to Gradle. https://docs.gradle.org/8.13-rc-1/userguide/test_reporting_api.html
    s
    • 2
    • 1
  • e

    Emil Kantis

    02/16/2025, 7:56 PM
    As someone who works almost exclusively on macOS, this feels slightly hostile 😜
    Copy code
    @EnabledIf(LinuxCondition::class)
    class BindTest : StringSpec({
    l
    a
    s
    • 4
    • 11
  • e

    Emil Kantis

    02/16/2025, 7:59 PM
    And am I the only one with issues running K2 mode in the Kotest repo? Weird bugs in IntellliJ until I switched back to K1
  • l

    LeoColman

    03/07/2025, 8:47 PM
    https://github.com/kotest/kotest-extensions-testcontainers says it was moved to the main repo, but I can't find it.
    s
    • 2
    • 2
  • l

    LeoColman

    03/07/2025, 8:48 PM
    Should it be there? I can create it if needed
  • a

    Alex Kuznetsov

    03/12/2025, 5:58 PM
    @Emil Kantis @LeoColman can you have a look at https://github.com/kotest/kotest/pull/4804 - I'm baffled. TIA!
    👍 1
  • s

    sam

    03/30/2025, 7:03 AM
    gonna try to get M3 out tomorrow
    metal 2
    kotest intensifies 5
    a
    • 2
    • 4
  • e

    Emil Kantis

    05/09/2025, 5:44 AM
    @sam is this being addressed by any already planned work for 6.0? IIRC you were ditching test types entirely?
  • a

    Anton Bogomazov

    05/10/2025, 5:43 PM
    Hello, I would like to ask a question about this issue. Is it even worth supporting such special iterators as described in the issue? It seems to me that the undefined behavior when dealing with such non-conventional iterators is the user's concern, not the library's. I mean, it's easy to support, but I'm not sure it's worth it. What do you think?
    a
    • 2
    • 1