dmcg
03/29/2019, 12:01 PMmkobit
03/29/2019, 1:41 PMminutest
is pretty great - we've been using it to supplement our other testing
in our projects we usually have something like
inline fun <reified T> testFactory(noinline builder: TestContextBuilder<Unit, T>.() -> Unit): Stream<out DynamicNode> =
testFactoryFor(
rootContext(builder = builder)
)
and don't inherit from JUnit5Minutests
so we can express tests as "multiple" contextsdmcg
03/29/2019, 1:49 PMrootContext
allow you to do the same thing?mkobit
03/29/2019, 3:04 PMDynamicTest.dynamicTest
and DynamicContainer.dynamicContainer
, since those methods usually are something like
@TestFactory
fun `some test method`(): Stream<out DynamicNode> = Stream.of(...)
seems like testFactory
is our own analogous representation when we started to use minutest (which is recently)dmcg
03/31/2019, 9:46 AM