kaocha

DenisMc 2022-03-29T13:48:35.116809Z

Hi, I have a pretty basic kaocha setup which is working well for my needs. I am now setting up automated deployment, and am building my project using github actions. As part of this, my tests run. Right now I’m in the process of getting a database running, but the way kaocha is printing logs is causing me problems in the github environment. As it stands, my tests are crashing (as expected - I don’t have a db set up yet), but kaocha doesn’t print the actual error to stdout/stderr - instead I get a message saying <test-ns-name>-testExecution error (ConnectException) at .PlainSocketImpl/socketConnect (PlainSocketImpl.java:-2). Connection refused (Connection refused) Full report at: /var/folders/bh/094hxw3x4bx4msfv9n9jz6580000gn/T/clojure-6044869877193583808.edn …with the report in the edn file. This has worked fine so far, but it doesn’t work in github actions as I don’t have access to the filesystem for ad-hoc files like this. How do I configure kaocha to print the data it currently spits into the .edn file onto stdout/stderr so github actions can see it and I can evaluate it? Thanks in advance.

Ferdinand Beyer 2022-03-29T13:59:27.694329Z

I don’t think this is Kaocha producing the edn file, but the clojure tooling (`tools.deps`?) that just dumps exceptions.

DenisMc 2022-03-29T14:09:12.448929Z

Thanks for the steer, you could be right - I’ll start probing in that direction.

👍 1
oxalorg (Mitesh) 2022-03-29T20:41:52.392319Z

On a side note: Kaocha does print all output to stdout if a test fails. There is also --no-capture-output if you want to print output for passed tests too

🙌 1