This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-01-22
Channels
- # asami (31)
- # babashka (1)
- # beginners (29)
- # biff (32)
- # cider (6)
- # clojure (29)
- # clojure-europe (7)
- # clojurescript (16)
- # community-development (18)
- # core-typed (11)
- # emacs (8)
- # hyperfiddle (10)
- # lsp (26)
- # nbb (8)
- # off-topic (17)
- # other-languages (1)
- # pedestal (2)
- # reitit (6)
- # releases (1)
- # sci (2)
- # shadow-cljs (19)
Is there a way to get this: https://clojureverse.org/t/hyperfiddle-rcf-turn-your-rich-comment-forms-into-tests/7866/3?u=didibus reporting back? Specifically how it was doing:
(tests
(+ 5 5) := 20)
ā user:33
in (+ 5 5)
10
:ā
20
It seems if I copy/paste the same reporter I don't get the above anymore, because :expected and :actual are different?Hi didibus, could you provide a bit more information please? What output are you getting right now? What setup are you using?
Thanks. On master rcf if I start a REPL for your code I get
expected: (= 20 (+ 5 5))
actual: (not (= 20 10))
What is missing from this output for you?I need (+ 5 5)
seperate from the RCF code, the expected code is not (= 20 (+ 5 5))
but only (+ 5 5)
And on the actual, I want it like it was:
20
!=
10
It's not that something is missing, but the way it is outputted it takes me longer to parse, which slows me down. I'd like a clearer output so it's faster for me to figure out what code failed what test and how it failed.
I see. The output you see matches a clojure.test report, we've been making changes to be more compatible with the ecosystem around it to gain more leverage. This is very crude but shows that the reporter is a standard clojure.test reporter. The output of this is
Failed: (+ 5 5)
10
!=
20
The map m
also has :file
and :line
metadata in my REPLAre these nth reliable? Or only works for this example? Ya, I saw it's changed to be the standard clojure.test output. But I find that a bit hard to parse on the REPL when I run my tests. I couldn't find a way to extract reliably from the map what was my code from the code added by Rcf for the check. I'll try what you pasted and see if it's reliable.