• u

    Uzi Landsmann

    3 years ago
    Kotlintest documentation ells me to use the following in my kotlin gradle build:
    val test by tasks.getting(Test::class) {
        useJUnitPlatform { }
    }
    However, it is apparently marked unstable. Is there a way around this?
    u
    pawegio
    3 replies
    Copy to Clipboard
  • codyoss

    codyoss

    3 years ago
    I am having issues using breakpoint in IntelliJ integration tests /w kotlintest. My app is written with springboot and I am using the
    SpringListener
    stuff. The app is also built on coroutines, and I am trying to put a breakpoint in a suspend function. Is there a known issue around my use case that anyone has heard of? To be clear my test does work when I just run it, and I am able to put breakpoints in the non-coroutine parts of my code.
    codyoss
    LeoColman
    8 replies
    Copy to Clipboard
  • h

    Hexa

    3 years ago
    I tried this and it didn't work. the doc is not very clear on how to use this projectconfig properly and there are many examples around
    import io.kotlintest.AbstractProjectConfig
    import io.kotlintest.IsolationMode
    
    object ProjectConfig : AbstractProjectConfig() {
        fun isolationMode(): IsolationMode = IsolationMode.InstancePerTest
    
        private var started: Long = 0
    
        override fun beforeAll() {
            started = System.currentTimeMillis()
        }
    
        override fun afterAll() {
            val time = System.currentTimeMillis() - started
            println("overall time [ms]: " + time)
        }
    }
    h
    t
    +1
    74 replies
    Copy to Clipboard
  • LeoColman

    LeoColman

    3 years ago
    Do you believe we should discuss this library you posted here?
    LeoColman
    breandan
    +1
    5 replies
    Copy to Clipboard
  • a

    Abbas A

    3 years ago
  • sam

    sam

    3 years ago
    You have a
    TestListener
    and you've overriden the
    beforeTest
    function ?
    sam
    a
    14 replies
    Copy to Clipboard
  • sam

    sam

    3 years ago
    KotlinTest 3.3.3 has been released.
    sam
    m
    2 replies
    Copy to Clipboard
  • b

    bbaldino

    3 years ago
    working on trying to isolate it down now
    b
    sam
    +1
    62 replies
    Copy to Clipboard
  • t

    tseisel

    3 years ago
    How should I use the
    infix fun <T> T.should(matcher: (T) -> Unit)
    ? What's its purpose ? I use it like this :
    person.should {
        it.firstName shouldBe "John"
        it.lastName shouldBe "Doe"
    }
    But that
    should
    seems redondant to me.
    t
    wasyl
    +1
    4 replies
    Copy to Clipboard
  • sam

    sam

    3 years ago
    sam
    d
    +1
    7 replies
    Copy to Clipboard