bbaldino
11/04/2020, 7:26 PMsavrov
11/08/2020, 8:02 PMphil-t
11/09/2020, 11:27 AMglobalAssertSoftly
to true for my tests but have found a situation where I don't want to use this - is there a way to not use soft assertions for an individual test, or to stop the test after a specific assertion? I've tried exitProcess(0)
but this leads to the test being terminated without any information about the assertion.christophsturm
11/11/2020, 12:11 PMclass Functional1Test : FunSpec({
context("ctx") {
different file:
class Functional2Test : FunSpec({
context("ctx") {
tieskedh
11/11/2020, 1:15 PMdata class Person(
val name : String,
val age : Int
)
fun Arb.persons() = bind(
string(), int()
) { name, age -> Person(name, age) }
@Test
fun test() = forAll(
config = PropTestConfig(
shrinkingMode = ShrinkingMode.Bounded(10)
),
Arb.persons()
){ it.age > 18 }
How can I use//create a shrinker for Person?christophsturm
11/12/2020, 10:45 AMatara
11/14/2020, 10:03 PMfilter
can be the cause of slowing down. Do you also think that using bind
is the problem? Maybe I should try to avoid both and use arbitrary
instead of bind
?simon.vergauwen
11/16/2020, 4:29 PM--profile
, but that only shows the length of the whole suite. I'd like to generate a small report to see which tests take excessively long.Big Chungus
11/16/2020, 5:13 PMBig Chungus
11/16/2020, 5:22 PMCannot access 'kotlinx.coroutines.CoroutineScope' which is a supertype of 'io.kotest.core.spec.style.scopes.GivenScope'. Check your module classpath for missing or conflicting dependencies
Anyone knows a workaround?kopper
11/18/2020, 8:59 PMtieskedh
11/24/2020, 10:11 AMDosExe
11/24/2020, 4:46 PMTest framework quit unexpectedly
. When i run mvn test i get java.util.ServiceConfigurationError: org.junit.platform.engine.TestEngine: Provider io.kotest.runner.junit.platform.KotestJunitPlatformTestEngine could not be instantiated
.Cicero
11/24/2020, 7:17 PMAnimesh Sahu
12/01/2020, 10:01 AMKrystian Rybarczyk
12/01/2020, 4:22 PMtestImplementation(platform("org.junit:junit-bom:5.7.0"))
testImplementation("org.junit.jupiter:junit-jupiter")
tests are not picked up by Gradle. Do Jupiter and Kotest not like one another?tieskedh
12/01/2020, 6:51 PMsimon.vergauwen
12/01/2020, 7:57 PMArb
with frequencies like `Arb.choose` which takes into account all the edgecases of all provided Arb
? I just encountered a bug that was happening on an edgecase value but it only arises when I raise iterations to 100K or so, using the following Arb.dave08
12/03/2020, 5:07 PMPeter
12/03/2020, 6:32 PMTest events were not received
, I believe this started happening after update to latest IJ yesterday (for code with me)taer
12/03/2020, 8:02 PMPaul Woitaschek
12/04/2020, 9:55 AMdave08
12/06/2020, 2:55 PMcontext
as root in a ShouldSpec
when using beforeEach
? It seems like when I put the beforeEach
in the init
block along with two contexts
, it only gets run once...dave08
12/06/2020, 3:06 PMbeforeTest
and afterTest
works... but what's the difference? It sounds from the docs that beforeEach
should be called before each test case with the type Test
, should
isn't a Test
?LeoColman
12/09/2020, 3:51 AMtieskedh
12/10/2020, 1:14 PMbbaldino
12/11/2020, 10:25 PMshouldBeInstanceOf
that took a block was that I ended up doing things like this:
someList.first().shouldBeInstanceOf<Foo> {
// 'it' is cast to 'Foo'
it.someMethodOnFoo() shouldBe ...
}
whereas now I end up doing something like
with (someList.first()) {
shouldBeInstanceOf<Foo>()
someMethodOnFoo() shouldBe ...
}
and I prefer the first style, but perhaps just a personal preference.christophsturm
12/12/2020, 12:22 PMchristophsturm
12/12/2020, 3:43 PMtestImplementation("io.kotest:kotest-framework-engine-jvm:$kotestVersion")
as dependency (and the kotest gradle plugin), i get this compiler error:
> Task :compileTestKotlin FAILED
e: Supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath:
class io.kotest.core.spec.style.scopes.ContainerScope, unresolved supertypes: kotlinx.coroutines.CoroutineScope
class io.kotest.core.test.TestContext, unresolved supertypes: kotlinx.coroutines.CoroutineScope
sam
12/12/2020, 4:40 PMsam
12/12/2020, 4:40 PMJavier
12/12/2020, 8:26 PMsam
12/12/2020, 8:26 PMthanksforallthefish
12/14/2020, 8:13 AMsam
12/14/2020, 10:26 PM