https://kotlinlang.org logo
Docs
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
kotest-contributors
  • a

    AJ Alt

    03/18/2020, 4:39 PM
    Keep in mind that uncommenting the worflow step isn't enough to fix publishing, the gradle targets need to be fixed, too. https://kotlinlang.slack.com/archives/CSYLDDZUY/p1583281086000400
    s
    • 2
    • 6
  • s

    sam

    03/18/2020, 5:30 PM
    Not sure if this ticket needs looking at https://github.com/kotest/kotest/issues/1298
    a
    • 2
    • 4
  • a

    Ashish Kumar Joy

    03/18/2020, 5:35 PM
    Still seeing the same issue, digging down found out the issue is with minimist 0.0.8 version which is transitive dependency of mkdirp which is transitive dependency of mocha. We already using latest version of mocha. So its looks like we wont be able to fix that.
    s
    • 2
    • 1
  • a

    Ashish Kumar Joy

    03/29/2020, 7:15 AM
    @sam this is regarding https://github.com/kotest/kotest/issues/1309, I can see the stack trace with point of failure on map comparison and have added the screenshot of that. Is there any action we take for that issue?
    s
    • 2
    • 1
  • s

    SerVB

    03/31/2020, 5:08 PM
    OK, look forward to see the PR. BTW, are you aware of two other classes that have extra regexps (apart from https://github.com/JetBrains/intellij-community/blob/5422868682d7eb8511dda02cf615ff375f5b0324/java/java-runtime/src/com/intellij/rt/execution/testFrameworks/AbstractExpectedPatterns.java )? https://github.com/JetBrains/intellij-community/blob/7dff14005521b1a2ae9b87e88d5e1a78eb4c9cb3/plugins/junit_rt/src/com/intellij/junit4/ExpectedPatterns.java https://github.com/JetBrains/intellij-community/blob/7dff14005521b1a2ae9b87e88d5e1a78eb4c9cb3/plugins/testng_rt/src/com/intellij/rt/testng/TestNGExpectedPatterns.java Maybe they can be used too...
    s
    • 2
    • 5
  • s

    sam

    04/11/2020, 2:02 PM
    are you using the new kotest tool window
    a
    • 2
    • 10
  • s

    sam

    04/27/2020, 4:44 AM
    Thank you. I'm really enjoying working on the plugin, so if you can think of anything else that would be useful, let me know !
    a
    • 2
    • 3
  • a

    atara

    05/01/2020, 1:12 AM
    Hi, I’d like to be a contributor for this great project. right now struggling to set up the environment. I have the repo but the build fails giving me exception
    > Configure project :
    Kotlin Multiplatform Projects are an experimental feature.
    
    The Kotlin source set commonTest was configured but not added to any Kotlin compilation. You can add a source set to a target's compilation by connecting it with the compilation's default source set using 'dependsOn'.
    See <https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html#connecting-source-sets>
    
    > Task :kotest-fp:compileKotlinNative
    Picked up _JAVA_OPTIONS: -Xms4096m -Xmx4096m -XX:MaxMetaspaceSize=1024m
    xcrun: error: unable to find utility "xcodebuild", not a developer tool or in PATH
    e: org.jetbrains.kotlin.konan.MissingXcodeException: An error occurred during an xcrun execution. Make sure that Xcode and its command line tools are properly installed.
            at org.jetbrains.kotlin.konan.target.CurrentXcode.xcrun(Xcode.kt:77)
            at org.jetbrains.kotlin.konan.target.CurrentXcode.access$xcrun(Xcode.kt:45)
            at org.jetbrains.kotlin.konan.target.CurrentXcode$version$2.invoke(Xcode.kt:70)
            at org.jetbrains.kotlin.konan.target.CurrentXcode$version$2.invoke(Xcode.kt:45)
            at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
            at org.jetbrains.kotlin.konan.target.CurrentXcode.getVersion(Xcode.kt)
            at org.jetbrains.kotlin.konan.target.AppleConfigurablesImpl$xcodePartsProvider$2.invoke(Apple.kt:71)
            at org.jetbrains.kotlin.konan.target.AppleConfigurablesImpl$xcodePartsProvider$2.invoke(Apple.kt:24)
            at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
            at org.jetbrains.kotlin.konan.target.AppleConfigurablesImpl.getXcodePartsProvider(Apple.kt)
            at org.jetbrains.kotlin.konan.target.AppleConfigurablesImpl.getDependencies(Apple.kt:58)
            at org.jetbrains.kotlin.konan.util.DependencyProcessor.<init>(DependencyProcessor.kt:117)
            at org.jetbrains.kotlin.konan.util.DependencyProcessor.<init>(DependencyProcessor.kt:114)
            at org.jetbrains.kotlin.konan.properties.KonanPropertiesLoader$dependencyProcessor$2.invoke(KonanProperties.kt:59)
            at org.jetbrains.kotlin.konan.properties.KonanPropertiesLoader$dependencyProcessor$2.invoke(KonanProperties.kt:34)
            at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
            at org.jetbrains.kotlin.konan.properties.KonanPropertiesLoader.getDependencyProcessor(KonanProperties.kt)
            at org.jetbrains.kotlin.konan.properties.KonanPropertiesLoader.downloadDependencies(KonanProperties.kt:40)
            at org.jetbrains.kotlin.konan.target.Platform.downloadDependencies(Platform.kt)
            at org.jetbrains.kotlin.backend.konan.KonanConfig.<init>(KonanConfig.kt:64)
            at org.jetbrains.kotlin.cli.bc.K2Native.doExecute(K2Native.kt:63)
    s
    • 2
    • 3
  • a

    atara

    05/01/2020, 1:14 AM
    I’d like to know : which command to use to build and run the tests? I used
    ./gradlew check
    and also what is the right way to fix this error :upp: I already deleted and re install the xcode commands
    m
    • 2
    • 1
  • d

    dr.dreigh

    05/11/2020, 5:57 PM
    Hi, I've been looking at: https://github.com/kotest/kotest/issues/826, I've done a basic POC, just wanted to get some opinions. If I include the diff text below the expected/actual bit:
    expected:<Foo(a=a, b=a, c=a)> but was:<Foo(a=a, b=b, c=c)>
    - diff in field Foo.b: "b" did not equal "a"
    - diff in field Foo.c: "c" did not equal "a"
    It doesn't hook into the intellij expected pattern to highlight the diff in the comparison window. If we move the diff bit above the expected / actual section, it works, but I think the text looks a little out of context. What do you think?!
    s
    • 2
    • 43
  • d

    dr.dreigh

    05/16/2020, 8:32 AM
    Hi... I've been playing a bit more with my POC for data class diffs, making it recursive for nested data classes, got it looking like:
    data class diff for com.sksamuel.kotest.matchers.Baz
    ├ booFoo: data class diff for com.sksamuel.kotest.matchers.BooFoo
    │  ├ a: expected:<9L> but was:<8L>
    │  └ foo: data class diff for com.sksamuel.kotest.matchers.Foo
    │     ├ a: expected:<123L> but was:<321L>
    │     ├ b: expected:<"a"> but was:<"b">
    │     └ c: expected:<"a"> but was:<"c">
    ├ i: expected:<66> but was:<67>
    └ things: expected:<["cheese", 22]> but was:<["egg", 1]>
    ... however, it's lots of string manipulation. it uses
    shouldBe
    to choose the correct
    Eq
    instance. Then it gets the string from the the
    Throwable.message
    , and if it's a nested data class it does a little more manipulation. My only thoughts to make this a little cleaner would be to change the
    Eq
    interface (and the instances), such that instead of returning a
    Throwable?
    , it returns a type which contains the differences. That way we don't have string manipulate as we'd have access to the diff data. However this might complicate things for the purpose of one feature. Be good to get the thoughts of people a bit more familiar with the codebase, I'm sure there's a much simper way - I just don't can't see it! 🙈 (If you want to see my extremely hacky POC code for reference).
    s
    • 2
    • 16
  • a

    atara

    05/19/2020, 8:08 AM
    Hi Devs, I work a lot with property tests and use the
    checkAll
    function. I would really like to add a change to call
    beforeTest
    and
    afterTest
    (or some other equivalent functions) between each iteration of the property base tests. Looking at the code I was trying to find a central place of where to add such call. I found this function
    proptest
    but there are many of them and I don’t have access to the Spec from there. The Spec holds the before and after functions. I wonder if someone more familiar with the code can guid me here. Thank you
    s
    • 2
    • 7
  • s

    sam

    06/06/2020, 5:37 PM
    Here is a revised roadmap for 4.1 https://github.com/kotest/kotest/issues/1089
    d
    • 2
    • 1
  • d

    dr.dreigh

    06/07/2020, 9:17 AM
    re 826: I've got together a bit of a work in progress diff, but I'm a little stalled in places where I could do with a bit of help knowing where to put things, and how config works. This is what I have got so far on 826: https://github.com/kotest/kotest/compare/master...jaymoid:826-help-needed?expand=1 It prints diffs like:
    data class diff for com.sksamuel.kotest.eq.DataClass3
    ├ x: expected:<99> but was:<88>
    ├ y: data class diff for com.sksamuel.kotest.eq.DataClass2
    │  ├ x: expected:<2> but was:<1>
    │  ├ y: expected:<4.4f> but was:<3.4f>
    │  └ z: data class diff for com.sksamuel.kotest.eq.DataClass1
    │     ├ a: expected:<99> but was:<2>
    │     └ b: expected:<7.6f> but was:<4.6f>
    └ z: expected:<44.6> but was:<44.4>
    I have got as far as I can on my own, there's quite a few bits in the code where I could do with a bit of help, they are marked TODO, or just HELP! 🙂 • I've added
    Any?.isDataClass
    function to return true the instance is a data class and if the platform supports reflection. I'm not sure I've added all the implementations in the right places, or if I actually needed them all? (Non JVM kotlin is new to me!) • Because this feature is not useful if the user decides to override
    equals()
    in their data class, I've added a propertyConfig value
    showDetailedDataClassDiff
    - however I'm not sure if a) the best way of accessing it form the
    DataClassEq.kt
    class? and b) if this flag should be on a per spec basis rather than project? (or both?) • I imagine that a very deeply nested data class would cause this code to stack overflow. • I'm not sure where DataClassEq.kt should live because it contains platform dependent code. Any help/suggestions/code changes/feedback would be greatly appreciated. Cheers!
    s
    • 2
    • 24
  • a

    atara

    06/12/2020, 2:07 AM
    Good news ↗️ - all our builds are broken because we use snapshots and they are not working anymore. any idea why?
    s
    • 2
    • 18
  • a

    atara

    06/13/2020, 10:53 AM
    Trying the new version - all the tests are failing. Trying the first example on the page:
    class MyTests : StringSpec({
      "length should return size of string" {
        "hello".length shouldBe 5
      }
      "startsWith should test for a prefix" {
        "world" should startWith("wor")
      }
    })
    and getting
    kotlinx.coroutines.TimeoutKt.withTimeout-lwyi7ZQ(DLkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
    java.lang.NoSuchMethodError: kotlinx.coroutines.TimeoutKt.withTimeout-lwyi7ZQ(DLkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
    	at io.kotest.core.runtime.TestExecutor.executeAndWait(TestExecutor.kt:180)
    	at io.kotest.core.runtime.TestExecutor.invokeTestCase(TestExecutor.kt:149)
    	at io.kotest.core.runtime.TestExecutor.executeActiveTest(TestExecutor.kt:118)
    	at io.kotest.core.runtime.TestExecutor$intercept$2.invokeSuspend(TestExecutor.kt:75)
    	at io.kotest.core.runtime.TestExecutor$intercept$2.invoke(TestExecutor.kt)
    	at io.kotest.core.runtime.TestExecutor.executeIfActive(TestExecutor.kt:87)
    	at io.kotest.core.runtime.TestExecutor.intercept(TestExecutor.kt:75)
    	at io.kotest.core.runtime.TestExecutor.execute(TestExecutor.kt:56)
    	at io.kotest.core.engine.SingleInstanceSpecRunner.runTest(SingleInstanceSpecRunner.kt:59)
    	at io.kotest.core.engine.SingleInstanceSpecRunner$execute$2$invokeSuspend$$inlined$invoke$lambda$1.invokeSuspend(SingleInstanceSpecRunner.kt:69)
    	at io.kotest.core.engine.SingleInstanceSpecRunner$execute$2$invokeSuspend$$inlined$invoke$lambda$1.invoke(SingleInstanceSpecRunner.kt)
    	at io.kotest.core.engine.SpecRunner$runParallel$$inlined$map$lambda$1$1.invokeSuspend(SpecRunner.kt:51)
    	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
    	at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:271)
    	at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:79)
    	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:54)
    	at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
    	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:36)
    	at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)
    	at io.kotest.core.engine.SpecRunner$runParallel$$inlined$map$lambda$1.run(SpecRunner.kt:50)
    	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    	at java.lang.Thread.run(Thread.java:748)
    Any idea…? Thank you
    s
    • 2
    • 13
  • a

    atara

    06/14/2020, 12:19 AM
    Getting this error now (when I ran
    mvn clean install
    )
    .m2/repository/io/kotest/kotest-assertions-shared-jvm/4.1.0.RC2/kotest-assertions-shared-jvm-4.1.0.RC2.jar
    java.util.zip.ZipException: zip file is empty
    • 1
    • 1
  • s

    sam

    06/19/2020, 1:27 PM
    I think we can release 4.1 final this weekend.
    a
    • 2
    • 3
  • a

    AJ Alt

    06/19/2020, 4:53 PM
    I tried using kotest 4.1.0.RC2 in an MPP project. It looks like the mingwX64 artifact isn't being published (https://repo1.maven.org/maven2/io/kotest/). I'm able to run the publish task locally on Windows, and I see it being published for snapshots ( https://oss.sonatype.org/content/repositories/snapshots/io/kotest/kotest-assertions-core-mingwx64/). Did a step get missed when promoting the artifacts in sonatype?
    s
    l
    • 3
    • 16
  • a

    AJ Alt

    06/19/2020, 5:11 PM
    Uh oh. I'm seeing crashes on the native code:
    kotlin.native.concurrent.InvalidMutabilityException: mutation attempt of frozen io.kotest.assertions.BasicAssertionCounter@edc548
            at kfun:kotlin.Throwable.<init>(kotlin.String?;kotlin.Throwable?)kotlin.Throwable (0000000000456260)
            at kfun:kotlin.Throwable.<init>(kotlin.String?)kotlin.Throwable (0000000000456550)
            at kfun:kotlin.Exception.<init>(kotlin.String?)kotlin.Exception (000000000044ffe0)
            at kfun:kotlin.RuntimeException.<init>(kotlin.String?)kotlin.RuntimeException (000000000044fbd0)
            at kfun:kotlin.native.concurrent.InvalidMutabilityException.<init>(kotlin.String)kotlin.native.concurrent.InvalidMutabilityException (000000000047ca30)
            at ThrowInvalidMutabilityException (000000000047cbc0)
            at MutationCheck (00000000007b8610)
            at kfun:io.kotest.assertions.BasicAssertionCounter.<set-counter>#internal (00000000005ef300)
            at kfun:io.kotest.assertions.BasicAssertionCounter.inc() (00000000005ef440)
            at kfun:io.kotest.matchers.shouldBe@T.(U?){0<kotlin.Any?>;1<T>}Generic (0000000000618230)
            at Konan_start (0000000000494fb0)
    s
    • 2
    • 7
  • s

    SerVB

    06/19/2020, 8:13 PM
    Hey. Just to remind: I'm doing JSON refactoring PR. I have another question: Is it expected that current JSON implementation has more strict behavior for numbers than simple
    shouldBe
    ?
    1.shouldBe(1.0)  // passes
    "1".shouldMatchJson("1.0")  // throws: "expected 1.0 but was 1"
    I think it shouldn't throw. Maybe eq should be used. If you agree, I will fix this. I've already decided to split my PR to multiple ones so it will be one more.
    s
    • 2
    • 1
  • s

    Samyak Jain

    07/04/2020, 7:10 PM
    Hi I'm not able to find source code (from where the jar of the following are built) 1. kotlin-annotation-processing-gradle 2. kotlin-compiler-runner 3. kotlin-scripting-compiler-embeddable Any help is appreciated.
    s
    • 2
    • 3
  • r

    reevn

    07/22/2020, 6:39 PM
    Hey 👋 I'm in the process of adding some new listener callbacks (https://github.com/kotest/kotest/issues/1584). I've looked how
    beforeTest
    is implemented and followed the same pattern. I've found the
    TestLifecycleAware
    interface from a 3rd party library which contains
    beforeTest
    and
    afterTest
    that is overridden and executed by our
    TestLifecycleAwareListener
    . Does this also need to somehow be updated, or is that just the one mapping we need to this library and other similar callbacks we add do not need to be mapped to
    TestlifecycleAware
    ?
    s
    • 2
    • 8
  • i

    Irene Dea

    08/05/2020, 1:10 AM
    Hello, I have a project that uses kotlin master and kotest 4.1.2. I get the following runtime error: https://gist.github.com/irenedea/fb314a887ddf2195934e5f145e141772. Notably, test discovery fails because kotlin.time.TimeMark.elapsedNow() does not exist. Does anyone have any idea why kotlin master would cause this error?
    l
    s
    • 3
    • 9
  • i

    Irene Dea

    08/05/2020, 10:15 PM
    There appears to be a bug here: https://github.com/kotest/kotest/blob/master/kotest-core/src/commonMain/kotlin/io/kotest/core/extensions/RuntimeTagExtension.kt#L34 . Shouldn't it be a var not a val?
    s
    a
    • 3
    • 5
  • s

    sam

    08/10/2020, 11:30 AM
    I think 4.2.0 is looking like a solid release. We're just waiting on kotlin 1.4 to drop really. I will release an RC build so people using 1.4.0.rc have something to work against.
    🎉 2
    • 1
    • 2
  • s

    sam

    08/10/2020, 11:30 AM
    The latest intellij plugin should be approved by jetbrains today.
    🎉 3
    • 1
    • 1
  • s

    sam

    08/10/2020, 7:53 PM
    if you open the issue I will fix it
    r
    • 2
    • 7
  • d

    dr.dreigh

    08/14/2020, 10:50 AM
    Hi, we've noticed that when we run a single junit test/or single junit suite, we also get the unrelated kotest tests being executed (both in Intellij and Gradle cmd line) - is this something known? (Kotest version 4.1.3 and 4.2.0.RC2)
    s
    • 2
    • 3
  • a

    Alanna

    08/19/2020, 10:57 PM
    Hi, on a fresh kotest master (commit 61c450) I'm having trouble running gradle commands. In particular, this is my error:
    $ ./gradlew test
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    A problem occurred configuring project ':buildSrc'.
    > Could not resolve all artifacts for configuration ':buildSrc:classpath'.
       > Could not resolve org.gradle.kotlin:plugins:1.3.6.
         Required by:
             project :buildSrc > org.gradle.kotlin.kotlin-dsl:org.gradle.kotlin.kotlin-dsl.gradle.plugin:1.3.6
          > Could not resolve org.gradle.kotlin:plugins:1.3.6.
             > Could not get resource '<https://plugins.gradle.org/m2/org/gradle/kotlin/plugins/1.3.6/plugins-1.3.6.module>'.
                > Could not GET '<https://repo.jfrog.org/artifactory/libs-release-bintray/org/gradle/kotlin/plugins/1.3.6/plugins-1.3.6.module?referrer>'.
                   > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    
    * Get more help at <https://help.gradle.org>
    
    Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
    Use '--warning-mode all' to show the individual deprecation warnings.
    See <https://docs.gradle.org/6.5.1/userguide/command_line_interface.html#sec:command_line_warnings>
    
    BUILD FAILED in 2s
    When I open up https://plugins.gradle.org/m2/org/gradle/kotlin/plugins/1.3.6/plugins-1.3.6.module in a web browser I get a JSON response with status 404. Has anyone seen this before or does anyone have any ideas for things to try? I have tried removing both my local and global gradle caches but I still get the error.
    s
    • 2
    • 1
Powered by Linen
Title
a

Alanna

08/19/2020, 10:57 PM
Hi, on a fresh kotest master (commit 61c450) I'm having trouble running gradle commands. In particular, this is my error:
$ ./gradlew test

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':buildSrc'.
> Could not resolve all artifacts for configuration ':buildSrc:classpath'.
   > Could not resolve org.gradle.kotlin:plugins:1.3.6.
     Required by:
         project :buildSrc > org.gradle.kotlin.kotlin-dsl:org.gradle.kotlin.kotlin-dsl.gradle.plugin:1.3.6
      > Could not resolve org.gradle.kotlin:plugins:1.3.6.
         > Could not get resource '<https://plugins.gradle.org/m2/org/gradle/kotlin/plugins/1.3.6/plugins-1.3.6.module>'.
            > Could not GET '<https://repo.jfrog.org/artifactory/libs-release-bintray/org/gradle/kotlin/plugins/1.3.6/plugins-1.3.6.module?referrer>'.
               > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at <https://help.gradle.org>

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See <https://docs.gradle.org/6.5.1/userguide/command_line_interface.html#sec:command_line_warnings>

BUILD FAILED in 2s
When I open up https://plugins.gradle.org/m2/org/gradle/kotlin/plugins/1.3.6/plugins-1.3.6.module in a web browser I get a JSON response with status 404. Has anyone seen this before or does anyone have any ideas for things to try? I have tried removing both my local and global gradle caches but I still get the error.
s

sam

08/20/2020, 12:40 AM
Just seems like internet issues? Or behind a firewall or something
👍 1
View count: 2