kaocha

piyer 2022-11-08T06:54:06.373459Z

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

plexus 2022-11-14T14:17:20.708099Z

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

dharrigan 2022-11-08T06:59:35.237039Z

https://clojuredocs.org/clojure.test/use-fixtures

piyer 2022-11-08T07:05:28.532179Z

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

dharrigan 2022-11-08T07:16:51.239699Z

In that case, perhaps https://cljdoc.org/d/lambdaisland/kaocha/1.0.700/doc/plugin-hooks may help.

imre 2022-11-08T09:53:24.040619Z

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