https://kotlinlang.org logo
Join SlackCommunities
Powered by
# kotlintest-devs
  • s

    sam

    01/14/2020, 4:59 PM
    ok
  • s

    sam

    01/14/2020, 4:59 PM
    I got describe spec working
  • s

    sam

    01/14/2020, 4:59 PM
    so just the more unusual ones left to migrate to the new framework
  • s

    sam

    01/14/2020, 4:59 PM
    also we do have too many specs imo but I don’t know what we could get rid of
  • l

    LeoColman

    01/14/2020, 7:16 PM
    Why do we need to get rid of any?
  • s

    sam

    01/14/2020, 9:01 PM
    well we don’t
  • s

    sam

    01/14/2020, 9:01 PM
    I just think we have a load that no one uses
  • s

    sam

    01/14/2020, 9:01 PM
    it just complicates the kotlin test message
  • l

    LeoColman

    01/14/2020, 10:22 PM
    Maybe we can take the more unused Specs a little bit underground
  • s

    sam

    01/14/2020, 10:26 PM
    or just delete them see what happens 😂
  • l

    LeoColman

    01/14/2020, 11:16 PM
    Is it still ultra easy to write a custom Spec?
  • s

    sam

    01/14/2020, 11:18 PM
    well no harder than it was
  • s

    sam

    01/14/2020, 11:18 PM
    actually probably a bit easier
  • s

    sam

    01/14/2020, 11:18 PM
    https://github.com/kotlintest/kotlintest/blob/master/kotest-core/src/commonMain/kotlin/io/kotest/core/spec/style/DescribeSpecDsl.kt
  • l

    LeoColman

    01/14/2020, 11:18 PM
    At most we're forcing people to define their own least used spec
  • s

    sam

    01/14/2020, 11:19 PM
    https://github.com/kotlintest/kotlintest/blob/master/kotest-core/src/commonMain/kotlin/io/kotest/core/spec/style/describeSpec.kt
  • s

    sam

    01/14/2020, 11:19 PM
    I’m happy to add them, but then deprecate the shit ones
  • s

    sam

    01/20/2020, 7:21 AM
    We now support JS testing in the current 4.0 snapshot. Very little configuration required, and the full test life cycle is supported (before/after etc) in addition to options like global asserts, timeouts and test ordering. You can use property testing, table testing, inspectors, nearly all the assertions. See https://github.com/kotlintest/kotlintest/tree/master/kotest-examples/kotest-examples-javascript for a basic example. (There are some caveats due to limitations in what kotlin-js and the javascript test frameworks allow.)
  • l

    LeoColman

    01/20/2020, 12:40 PM
    Maybe we want to get that out the specific JS channel and ask for feedback?
  • s

    sam

    01/20/2020, 1:05 PM
    That's a good idea but someone other than me should try it first
  • l

    LeoColman

    01/20/2020, 1:06 PM
    I don't even know how to hello world a js project
  • s

    sam

    01/20/2020, 1:11 PM
    Look at the example project I made
  • l

    LeoColman

    01/20/2020, 1:14 PM
    I was actually willing to try Kotlin JS for some AWS lambda shit.
  • l

    LeoColman

    01/20/2020, 1:15 PM
    I didn't want to use Javascript directly, and Kotlin JVM has some cold start issues
  • s

    sam

    01/20/2020, 1:26 PM
    That would be an amazing blog
  • s

    sam

    01/20/2020, 1:26 PM
    Maybe i could try it
  • l

    LeoColman

    01/20/2020, 7:48 PM
    Screenshot_20200120-164802_cropped.png
  • l

    LeoColman

    01/20/2020, 7:48 PM
    Go bot go!
  • s

    sam

    01/20/2020, 7:50 PM
    I don't know if it'll work on gradle kts
  • s

    sam

    01/22/2020, 9:19 AM
    Please migrate all conversation from here to #kotest-dev. Please don't add further comments so that this message stays at the bottom!