AJ Alt
08/20/2020, 4:27 PMAshish Kumar Joy
03/11/2021, 2:49 PMAJ Alt
03/16/2021, 4:39 PMsam
04/25/2021, 4:15 AMatara
05/11/2021, 5:58 AMkotest-assertions-arrow-jvm
. Thankssam
05/19/2021, 3:46 PMsam
08/17/2021, 10:33 PMEmil Kantis
09/12/2021, 11:57 AMmitch
09/13/2021, 11:30 PMArb.constant
was moved to its specific kotlin file.
What strategy do we have on this? i can raise a PR to perhaps change the usage of Arb.constant
to Arb.of
or perhaps a simple arbitrary builder (which i think didn’t move)mitch
09/18/2021, 12:05 AMtest(...) {
checkAll(arbFirst, arbSecond) { first, second ->
sut.execute(first, second)
}
}
and after
test(...) { sut.execute(arbFirst.value(), arbSecond.value()) }
It’s really mindblowing! I can imagine how many hundreds lines of code I can simplify in our current tests if kotest has this.sam
09/20/2021, 1:03 AMEmil Kantis
09/21/2021, 1:29 AMArb
for a data class, right? I saw a SO question about it and started fiddling with it and made some progress. would it be ok to pursue or is someone else doing something similar? @mitch: do you know? 🙂sam
09/21/2021, 1:49 AMEmil Kantis
09/21/2021, 8:57 PMEmil Kantis
09/22/2021, 2:04 PMsam
09/23/2021, 1:13 AMmitch
09/23/2021, 11:35 AMsam
09/23/2021, 2:10 PMEmil Kantis
09/25/2021, 9:24 AMcheckAll<Int> { it shouldBeGreaterThan 1000 }
Given the above, wouldn’t it make sense that shrinking should inform me that it is succeeding for 1000, failing for 999?sam
09/26/2021, 3:13 PMsam
09/26/2021, 5:06 PMsam
09/26/2021, 9:31 PMsam
09/26/2021, 9:32 PMEmil Kantis
09/28/2021, 8:28 PMEmil Kantis
09/28/2021, 9:55 PMKtExpression.resolveType()
from package org.jetbrains.kotlin.idea.debugger.sequence.psi
I think it has issues with expect/actual, amongst other things..AJ Alt
10/09/2021, 4:59 PMEmil Kantis
10/11/2021, 10:19 PMsam
10/20/2021, 2:17 PMclass DatabaseContainerTest : FunSpec() {
init {
val mysql = MySQLContainer<Nothing>("mysql:8.0.26").apply {
withInitScript("init.sql")
startupAttempts = 1
withUrlParam("connectionTimeZone", "Z")
withUrlParam("zeroDateTimeBehavior", "convertToNull")
}
val ds = install(JdbcTestContainerExtension(mysql)) {
maximumPoolSize = 8
minimumIdle = 4
}
test("read from database") {
ds.connection.use {
val rs = it.createStatement().executeQuery("SELECT * FROM hashtags")
rs.next()
rs.getString("tag") shouldBe "startrek"
}
}
}
}
Emil Kantis
11/11/2021, 8:03 PMwithData
working as intended with regards to test-lifecycles? This test will never print Hello
, for instance
class SomeTest : FunSpec(
{
beforeEach { println("Hello") }
context("some data test") {
withData("World", "Foo", "Bar") { x ->
println(x)
}
}
}
)
Emil Kantis
11/16/2021, 5:41 PMjava.io.FileNotFoundException: /home/runner/work/kotest/kotest/kotest-framework/kotest-framework-engine/build/classes/kotlin/jvm/main/io/kotest/engine/interceptors/TestEngineStartedFinishedInterceptor$intercept$2$1.class (Too many open files)