Imran/Malic
01/29/2021, 4:56 PMio.kotest:kotest-property
. I have some Tests that fail every now and then and I wanted to save those edgecases, to ensure that their fixedsam
01/29/2021, 5:03 PMImran/Malic
01/29/2021, 7:33 PMjava.lang.AssertionError: Property failed after 1 attempts
Repeat this test by using seed 6157672104206447713
but in the application I am running the prop tests against I sometimes run into test error’s, where this is not suppliedsam
01/29/2021, 7:37 PMImran/Malic
01/29/2021, 7:57 PMsam
01/29/2021, 7:58 PMsam
01/29/2021, 7:58 PMImran/Malic
01/29/2021, 7:58 PMsam
01/29/2021, 7:58 PMtest("foo") {
checkAll<String> { a -> error(boom") }
}
sam
01/29/2021, 8:02 PMsam
01/29/2021, 8:02 PMtest("errored test should print seed") {
checkAll<Int, Int> { _, _ -> error("boom") }
}
Imran/Malic
01/29/2021, 8:03 PMtest("foo") {
forAll(Arb.list(Arb.domainType) { records ->
saveElementsToDB(records)
record == collectRecordsfromDB()
}
}
in some cases one or two elemts are missingsam
01/29/2021, 8:03 PMProperty failed after 1 attempts
java.lang.AssertionError: Property failed after 1 attempts
Repeat this test by using seed -3454921614817430845
Imran/Malic
01/29/2021, 8:04 PMsam
01/29/2021, 8:05 PMImran/Malic
01/29/2021, 8:05 PMImran/Malic
02/03/2021, 1:30 PM