iamsteveholmes
11/04/2015, 6:54 PMhhariri
hhariri
hhariri
Sometihng like this
as function names.hhariri
hhariri
iamsteveholmes
11/05/2015, 4:27 PMhastebrot
11/05/2015, 6:01 PMRunner
and a specification base class in form of
@RunWith(AbstractJunitRunner::class)
abstract class AbstractSpec(init: SpecStructure.() -> Unit) {
My goal was to implement something that allows defining hierarchical tests to allow DSLs for TDD and BDD. I haven't much to show, but this is the basic idea behind it.hastebrot
11/05/2015, 6:03 PMI would love to see some sort of specification framework become standard for Kotlin, with support for some sort of doubles/spys/mocking/stubsThere could be three components: a structure for tests, an assertion library and a mocking/stubbing... library.
iamsteveholmes
11/05/2015, 6:26 PMiamsteveholmes
11/05/2015, 6:27 PMiamsteveholmes
11/05/2015, 6:27 PMorangy
hastebrot
11/05/2015, 6:29 PMassertEquals(expected, actual)
(JUnit) and assertThat(actual, matcher)
. I think Kotlin has something like the former in the standard lib. There are also Groovy's power assertions which are also used in the Spock specification framework.orangy
orangy
orangy
iamsteveholmes
11/05/2015, 6:35 PMorangy
orangy
hastebrot
11/05/2015, 6:39 PMorangy
orangy
hastebrot
11/05/2015, 6:41 PMorg.jetbrains.spek.junit
to learn about JUnit `Runner`s.orangy
hastebrot
11/05/2015, 6:43 PMBe careful with descriptor IDsyou mean
JUnitUniqueId
?orangy
orangy
hastebrot
11/05/2015, 6:46 PMhastebrot
11/05/2015, 6:53 PM