sam
03/05/2022, 2:35 PMLeoColman
03/05/2022, 4:08 PMLeoColman
03/05/2022, 4:08 PMsam
03/05/2022, 4:09 PMLeoColman
03/07/2022, 7:32 PMLeoColman
03/07/2022, 7:32 PMLeoColman
03/07/2022, 7:33 PMclass MyTest : FunSpec({
test("Sum") {
2 + 2 shouldBe 4
}
todo("Subtraction") {
}
todo("Multiplication") {
}
})
LeoColman
03/07/2022, 7:34 PMtodo("Division").config( ... = ?) {
}
LeoColman
03/07/2022, 7:36 PMJim
03/07/2022, 7:42 PMEmil Kantis
03/07/2022, 7:42 PMJim
03/07/2022, 7:43 PMLeoColman
03/07/2022, 7:45 PMLeoColman
03/07/2022, 7:45 PMLeoColman
03/07/2022, 7:45 PMpending
state yet, just for the pending syntax. It would help remembering to write all the tests that I thoughtLeoColman
03/07/2022, 7:46 PMLeoColman
03/07/2022, 7:46 PMJim
03/07/2022, 7:47 PMtest("mult").config(enabledOrReasonIf = Enabled.disabled("issue #1337") { sut(2).times(2) shouldBe 4 }
Jim
03/07/2022, 7:49 PMEmil Kantis
03/07/2022, 7:51 PMpending
state 🙂 as master/main branch should never have any failing tests.. Adding failing tests to indicate scenarios that should be handled, and just test("Multiplication") { TODO("implement me") }
is good enough imo? It’s easy to replace the inner TODO, and it uses built-in language features so most people would recognize it. Works with all spec-styles as well..Emil Kantis
03/07/2022, 7:53 PMLeoColman
03/07/2022, 8:04 PMLeoColman
03/07/2022, 8:04 PMLeoColman
03/07/2022, 8:04 PMLeoColman
03/07/2022, 8:05 PMLeoColman
03/07/2022, 8:05 PMJim
03/07/2022, 8:06 PM