natpryce
09/23/2018, 8:44 AMrobfletcher
10/19/2018, 4:21 PMdmcg
10/19/2018, 8:45 PMdmcg
10/20/2018, 7:01 AMnatpryce
10/20/2018, 3:10 PMdmcg
10/20/2018, 10:12 PMobject FirstMinutests : JupiterTests<Fixture>() {
class Fixture { ... }
override val tests = context {
test("my first test") {
which keeps the annotation scariness hidden for both cases at the expense of another level of indentation.robfletcher
10/21/2018, 12:32 PMmodifyFixture
and before
?natpryce
10/21/2018, 4:01 PMdmcg
10/21/2018, 8:56 PMdmcg
10/28/2018, 1:09 PMnatpryce
11/05/2018, 1:13 PMchristophsturm
11/05/2018, 1:58 PMdmcg
11/09/2018, 8:38 AMit
. I've been playing and think that I can do this
data class Fruit(val name: String)
data class Conserve(val type: String, val fruit: Fruit)
junitTests<Fruit> {
fixture {
Fruit("blackcurrent")
}
derivedContext<Conserve>("inner") {
deriveFixture {
assertEquals("blackcurrent", this.name)
assertEquals("blackcurrent", it.name)
assertEquals("blackcurrent", parentFixture.name)
// Doesn't compile
// assertEquals("blackcurrent", fixture.name)
Conserve("jam", parentFixture)
}
test("test") {
assertEquals("jam", this.type)
assertEquals("jam", it.type)
assertEquals("jam", fixture.type)
// Doesn't compile
// assertEquals("blackcurrent jam", parentFixture.fruit)
}
}
}
dmcg
11/09/2018, 9:22 AMnatpryce
11/12/2018, 8:43 AMdmcg
11/13/2018, 9:43 AMContext<PathTemplate<T>, PathTemplate<T>>
-> TestContext<PathTemplate<T>>
- it's a shame that IntelliJ doesn't offer the most specific type alias in these casesdmcg
11/16/2018, 11:42 AMdmcg
11/23/2018, 5:17 PMdmcg
11/26/2018, 11:32 AMnatpryce
11/26/2018, 9:52 PMTestDescriptor
is actually a TestExecution
, then it can register resources that need to be cleaned up at the end of the test run…natpryce
11/27/2018, 9:11 AMnatpryce
11/27/2018, 9:16 AMchristophsturm
12/17/2018, 10:52 PMdmcg
12/30/2018, 10:31 AMdmcg
02/03/2019, 2:35 PMrobfletcher
02/11/2019, 6:01 PMRootContextBuilder
as unused because you’re finding it with reflection-y magicrobfletcher
02/16/2019, 4:08 PMdmcg
02/19/2019, 1:36 PMdmcg
02/21/2019, 8:11 AMchristophsturm
02/21/2019, 10:15 AM