Fork me on GitHub
#cider
<
2024-04-16
>
David G02:04:24

Does anyone know if there's an easy way to make the cider test report buffer on emacs show values in a non-raw form? E.g. strings would not show up with quotes surrounding them. Could help copy stuff from the output to analyze it more easily if it's parsable by Clojure

vemv07:04:50

Not sure I follow, could you paste an example?

David G16:04:58

Woops sorry CIDER is doing everything correctly, it looks like it's only for match? from https://github.com/nubank/matcher-combinators

(deftest foo
  (is (match? "abc" "def")))
Then , t t on it:
Test Summary
api.api-test 1 ms
  foo 1 ms

Tested 1 namespaces in 1 ms
Ran 1 assertions, in 1 test functions
1 failures
cider-test-fail-fast: t


Results

api.api-test
1 non-passing tests:

Fail in foo

expected: (match? "abc" "def")
  actual: (mismatch (expected abc) (actual def))          ;; <--- missing string quotes

David G16:04:10

I'll go see if there's a channel for that lib

plexus06:04:23

Is anyone here also a moderator for the CIDER discord server? It got hit with a wave of porn spam...