bbaldino
07/13/2020, 5:41 PMcom.github.ajalt.clikt:clikt:2.6.0
...anyone else seeing that?bbaldino
07/13/2020, 8:25 PMshouldThrow<SomeException>
won't match if a sub-type of SomeException
is thrown. But when I try and test with code equivalent(?) to what's in shouldThrow
, it does match.wasyl
07/14/2020, 9:42 AMcontext
block in DescribeSpec
? @sam you mentioned (in https://kotlinlang.slack.com/archives/CT0G9SD7Z/p1593192969030900) that now nested describe blocks are allowed, but they were allowed for almost a year, since 3.4 I think. I’m asking primarily since it’s a bit surprising to see such breaking change between 4.0 and 4.1Gopal S Akshintala
07/14/2020, 10:29 AMlistOf(“runner-junit5”, “assertions-core”, “runner-console”, “property”).forEach {
testImplementation(“io.kotest:kotest-$it-jvm:latest.integration”)
}
I tried with Intellij kotest plugin-1.0.5 as well and getting the below failure:themishkun
07/14/2020, 1:04 PM4.0.1
version? Is it compatible with kotest 4.1.+
?Swanand Keskar
07/14/2020, 3:33 PMwasyl
07/15/2020, 9:29 AMList<T>
and a Matcher<T>
, what’s the best way to check something like List<T>.shouldContainInOrder(List<Matcher<T>>)
?jaguililla
07/19/2020, 9:11 AMjaguililla
07/19/2020, 9:12 AMthanksforallthefish
07/20/2020, 1:28 PMSpringListener
. we are still investigating and cannot confirm yet, but looking at the implementation `TestContextManager`s are stored for each Spec but never removed, so that looks like a candidate. For comparison, junit `SpringExtension`removes the context in an afterAll
method (which should equivalent to afterSpec
). do you think we are wasting time or might we be onto something here?reevn
07/20/2020, 2:28 PMbeforeTest
of a nested scope is not executed for child scopes when the default isolation mode is chosen?
Example:
// beforeTest on the most outer level at the top of the spec
beforeTest { ... }
describe("some scope") {
beforeTest { ... }
// for these tests, the outer level and "some scope" beforeTest functions are executed in order before each test
it("test a") { ... }
it("test b") { ... }
describe("some deeper scope") {
// for all these tests only the top level beforeTest is executed before each one, but the "some scope" one is never executed
it("test c") { ... }
it("test d") { ... }
}
}
When I change to IsolationMode.InstancePerLeaf
it works, but I don't really need separate instances, I just need the beforeTests
of each parent to be executed for each test case. If this is a bug, I'm happy to create an issue.huehnerlady
07/21/2020, 7:49 AMphil-t
07/21/2020, 9:15 AMsavrov
07/21/2020, 12:20 PMbbaldino
07/21/2020, 9:49 PMshould
blocks having the same text for: "duplicated test name" (even though they are within different parent scopes. i.e.:
"one" {
"a" {
should("c") {}
}
"b" {
should("c") {}
}
}
thanksforallthefish
07/23/2020, 11:24 AMreevn
07/23/2020, 5:26 PMSkolson5903
07/25/2020, 10:16 PMphil-t
07/27/2020, 9:08 AMCarrascado
07/27/2020, 5:24 PMbbaldino
07/31/2020, 5:26 PMshould
block, and then resets it at the end, so I thought I'd be covered?arve
08/02/2020, 12:13 AMexecutionError
as if that was an additional failing test. Any idea why?
(2 actually failing tests gets reported as 3 failures)phil-t
08/04/2020, 4:08 PMerrorOccurred shouldBe false
or errorOccurred.shouldBe(false)
then the assertion failure says something like expected:<false> but was:<true>
Is it possible to add more information to make the problem more clear?
If it could display the name of the variable being checked that might be enough.Skolson5903
08/04/2020, 5:38 PMbbaldino
08/04/2020, 7:27 PMSkolson5903
08/05/2020, 5:05 PM4.2.0.426-SNAPSHOT
and the 1.1.0 snapshot of the Intellij plugin in Android Studio. Make a unit test using the AnnotationSpec setup. It looks fine in Android Studio, and gradle compiles it fine, but there is no gutter icon on this style of test in my multiplatform module set of tests. Other tests in the same module using StringSpec work fine. Anyone else seen this issue with AnnotationSpec? FYI manually creating a Run configuration for the same unit test class lets runs/debugs work fine.bbaldino
08/06/2020, 4:42 PMtestContext
member in a ShouldScope
, does something equivalent exist in kotest?torres
08/10/2020, 8:23 PMbbaldino
08/13/2020, 6:33 PM[ERROR] Failed to execute goal on project jicoco-test-kotlin: Could not resolve dependencies for project org.jitsi:jicoco-test-kotlin:jar:1.1-SNAPSHOT: The following artifacts could not be resolved: com.github.ajalt.clikt:clikt:jar:2.6.0, com.github.ajalt.clikt:clikt-js:jar:2.6.0, com.github.ajalt.clikt:clikt-linuxx64:klib:2.6.0, com.github.ajalt.clikt:clikt-metadata:jar:2.6.0: Could not find artifact com.github.ajalt.clikt:clikt:jar:2.6.0 in jitsi-maven-repository-releases (<https://github.com/jitsi/jitsi-maven-repository/raw/master/releases/>) -> [Help 1]
when I include the kotest-runner-console-jvm
in my pom and try to compile from the command line. @sam I think you said the need for this dep is going to go away soon (because it will be bundled). Is that right? Has that been released?kev1n11
08/16/2020, 9:52 PMThrowable
have (deeply) nested cause of type T?kev1n11
08/16/2020, 9:52 PMThrowable
have (deeply) nested cause of type T?sam
08/16/2020, 11:57 PMLeoColman
08/17/2020, 2:50 AMshouldThrow<MyAssertion> {
foo()
}.cause.shouldBeOfType<X>.cause.shouldBeOfType<Y>