dave08
06/05/2018, 3:54 PMmemoized work? I have something like this:
class Test : Spek {
val something by memoized { mockk<ISomething>() }
given("do this") {
every { something.doThis() } returns true
on("that happened") {
it("verify") {
.....
}
The something doesn't have the value true I gave it on given... I tried using other caching strategies, but natta...raniejade
06/05/2018, 11:56 PMevery in a beforeEachTest. I'm suspecting every is being invoked during the discovery phase.dave08
06/06/2018, 11:25 AMon I also put every w/o beforeEachTest (it's deprecated?) and it works, group is different than on @raniejade?raniejade
06/06/2018, 11:33 AMon is an action, which is basically a test that can contain other test. The difference of group and action is when they are invoked . group is invoked during discovery phase to build the test tree, while action is only invoked during the execution phase.raniejade
06/06/2018, 11:33 AMdave08
06/06/2018, 11:35 AMdave08
06/06/2018, 11:38 AMmemoized properties that depend on others and each one has its mocks and is dependent on others.. it can get hard to see the actual tests... @raniejaderaniejade
06/06/2018, 11:39 AM