Fork me on GitHub
#kaocha
<
2022-02-28
>
richiardiandrea18:02:02

Hi there, still debugging this cause I still have issues...basically what I observe is that the post-run hook is executed before (use-fixture :each) - Does this match the implementation? This for me is problematic cause I stop the system in an :each but shut down the test container in the post-run - I assumed post-run wraps the whole test execution

richiardiandrea18:02:44

By reading the code I think I can confirm this... post-run is run right after the fixture's (f) call and therefore before the fixture's cleanup in my case... My issue is that the cleanup (system) is customized by test and I need a way to do it for each test

richiardiandrea18:02:40

Should I use :kaocha.hooks/main instead for starting a test container before any test is run?

richiardiandrea18:02:52

and for shutting it down after it

richiardiandrea18:02:07

Would there be a way for kaocha to be in charge of :each and :once fixtures? Cause that would probably solve these issues...it seems like the hooks do not play well with them