Kirill Zhukov
08/11/2023, 3:17 AMtest("foo") {
step("do something") {
// ...
}
step("do something else") {
// ...
}
}
Emil Kantis
08/11/2023, 7:04 AMwithClue
match what you want?Klitos Kyriacou
08/11/2023, 8:18 AMclass MyTest: FreeSpec({
"foo" - {
"do something" {
/...
}
"do something else" {
/...
}
}
})
Shervin
08/11/2023, 10:52 AMBehaviourSpec
with Given
, When
, Then
+ my favorite one: And
?sam
08/11/2023, 11:07 PMcontext("foo") {
test("bar") {}
test("baz") {}
}
Kirill Zhukov
09/16/2023, 11:03 PMwithClue
is what I was looking for 🙂Klitos Kyriacou
09/18/2023, 8:46 AMwithClue
, sometimes I wish there was a way to add the text after the assertion instead of having to always put it before. For example, it would be nice if there was an "otherwise" like <actual> shouldBe <expected> otherwise "<actual> is the wrong value!"
. I think that would read nicer.sam
09/18/2023, 1:33 PMKlitos Kyriacou
09/18/2023, 2:02 PM