kaocha

genekim 2022-11-18T09:36:02.123659Z

Making a note to myself — reminder to study the documentation, and if this isn’t already sufficiently documented, file an issue or pull request: “`--plugin kaocha.plugin/profiling` does not work when using --watch — I was expecting this to work, hoping that I could find all the tests that need to be flagged with meta of :integration. Instead, profiling information never appeared.” Thank you to everyone who makes kaocha so awesome! I use it in (almost) all my projects!

plexus 2022-11-18T11:46:04.181979Z

Please do file an issue @genekim, I don't think I've seen anyone mention this one yet but it sounds like something that "should" work. If it's surprising to you it's probably surprising to someone else, and we should at least look at what our options are to improve/ or fix it.

👍 1
🙏 1
genekim 2022-11-18T23:19:40.206699Z

Done! Thank you, @plexus! https://github.com/lambdaisland/kaocha/issues/332

2022-11-18T12:31:38.018959Z

Hey friendly folks

2022-11-18T12:32:03.357949Z

I have a quick question, I get the following error when trying to run kaocha with the cloverage plugin

2022-11-18T12:32:16.461889Z

ERROR: Couldn't load plugin kaocha.plugin/cloverage. Failed to load namespace cloverage. This could be caused by a misspelling or a missing dependency.

2022-11-18T12:34:06.571339Z

:test {:extra-paths ["backend/dev-resources"]
                  :extra-deps {lambdaisland/kaocha {:mvn/version "1.68.1059"}
                               lambdaisland/kaocha-cloverage {:mvn/version "1.1.89"}}
                  :exec-fn kaocha.runner/exec-fn}

           :kaocha-coverage {:exec-fn kaocha.runner/exec-fn
                             :exec-args {:plugins [kaocha.plugin/cloverage]
                                         :cloverage/opts {:ns-exclude-regex [],
                                                          :text? false,
                                                          :lcov? false,
                                                          :high-watermark 80,
                                                          :fail-threshold 0,
                                                          :output "target/coverage",
                                                          :low-watermark 50,
                                                          :ns-regex [],
                                                          :summary? true,
                                                          :coveralls? false,
                                                          :emma-xml? false,
                                                          :html? true,
                                                          :nop? false,
                                                          :codecov? false}}}

2022-11-18T12:34:16.279969Z

i have this config in my deps.edn

2022-11-18T12:34:33.448309Z

and run it with: clojure -A:test -X:kaocha-coverage

2022-11-18T12:35:17.762379Z

any hints?

plexus 2022-11-18T14:00:02.730199Z

not sure but try making the plugin name a keyword

plexus 2022-11-18T14:00:17.807839Z

:plugins [:kaocha.plugin/cloverage]

2022-11-18T14:18:17.000759Z

thx @plexus , the issue was, we have a dedicated tests.edn in the project, so I added the config part there and everything is working now! (and I had to use a keyword 🤣 )