Fork me on GitHub
#kaocha
<
2019-04-10
>
plexus06:04:18

though there's also an issue with your test, in clojure.test the expected value comes first, if you do that then it works fine

mynomoto13:04:03

In our tests, almost all the time we expect a record, that was only meant as a simple example.

mynomoto13:04:06

I will try to reproduce with deep-diff only.

plexus06:04:27

(deftest monad-either-fail-example
  (is (= {} (right {}))))

plexus06:04:54

@pfeodrippe can you elaborate on how io.aviso.logging.setup comes into play here? Does it intercept the println?

pfeodrippe22:04:23

Hi plexus, my computer is at maintenance, I'll check at it more when I have it again, I think it's worth to investigate it o/

akiel10:04:06

Hi, I use (spec-test/instrument) to override specs in test fixtures. Running with lein test works. But running with kaocha gives me a spec error which looks like the instrumentation was not done. Test fixtures are executed.

plexus14:04:42

@akiel Where are you calling instrument? It needs to be done after tests are loaded but before they run, so a post-load or pre-run hook would probably be the best place

akiel15:04:51

@plexus I use clojure.test each fixtures to call instrument. You can see that easily in my code.