Fork me on GitHub
#kaocha
<
2022-11-08
>
piyer06:11:06

Is there a way to run tear up and tear down for every deftest?

plexus14:11:20

can you elaborate? if you are writing a separate one for each test, then why not put the setup/teardown directly inside the test?

piyer07:11:28

@dharrigan the problem with that is there is only one fixture for the namespace. I am trying to write a fixture per deftest.

imre09:11:24

I would try and strive for clojure.test compatibility (for like executing tests from your editor integration). It's unfortunate that clojure.test only has ns-level fixtures. One solution is to break the test ns up by fixture which shouldn't break other clojure.test integrations