dave0812/06/2020, 3:06 PM
works... but what's the difference? It sounds from the docs that
should be called before each test case with the type
wasyl12/06/2020, 4:27 PM
to have the behavior you expect?
dave0812/06/2020, 4:29 PM
, so that shouldn't really affect this... I'm just having trouble understanding the difference between the various lifecycle stages...
wasyl12/06/2020, 4:35 PM
much really, so I mostly wanted to mention isolation mode in case you didn’t know that the default is somewhat confusing for JUnit users (as each spec is by default only instantiated once? I think) Anyway we use listeners sparingly and since we’re using isolationMode#perLeaf, we can just rely on before/afterSpec for mostly junit-like behavior
dave0812/06/2020, 4:41 PM
is the default..., thanks for the remark! I still need listeners for testcontainers though, and it's really puzzling how when a test is run by itself, it works, whereas in the whole suite, that same test fails...
wasyl12/06/2020, 4:52 PM
should make the tests mostly independent, unless you’re sharing some statics. Or the listeners aren’t ran as you expect, but I’m not that familiar with them. Perhaps if you post a sample spec with simple listeners with prints and when you’d expect them to run but they don’t, someone will point you towards a solution 🙂
dave0812/07/2020, 1:41 PM
until I manage to sort out the repercussions of the other modes...