This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-08
Channels
- # announcements (42)
- # aws (2)
- # babashka (69)
- # beginners (38)
- # calva (18)
- # cider (39)
- # circleci (1)
- # clj-commons (10)
- # cljs-dev (2)
- # clojure (36)
- # clojure-australia (14)
- # clojure-europe (25)
- # clojure-gamedev (40)
- # clojure-losangeles (4)
- # clojure-nl (5)
- # clojure-sweden (1)
- # clojure-uk (5)
- # clojurescript (133)
- # core-logic (24)
- # cursive (7)
- # datalevin (4)
- # datascript (3)
- # figwheel-main (1)
- # fulcro (45)
- # honeysql (1)
- # integrant (43)
- # introduce-yourself (1)
- # jobs (4)
- # leiningen (3)
- # lsp (32)
- # nextjournal (9)
- # pathom (18)
- # polylith (21)
- # portal (65)
- # re-frame (6)
- # releases (1)
- # remote-jobs (1)
- # reveal (12)
- # rewrite-clj (1)
- # sci (84)
- # tools-deps (22)
Hi all. I'm hoping to replace my Cursive REPL with Reveal. The one piece that feels missing is clojure.test integration. I rely on Cursive's run test integration and diff viewer for my day-to-day work. I can hook up a keybinding to run a command to just run a particular test, but the output is the basic console print method. How are folks working with clojure.test & Reveal?
I considered creating a test runner for Reveal! But that option wasn't very popular in a pool I ran awhile ago: https://twitter.com/v1aaad/status/1451821549833662475?t=LICd_VzFWfeaLwi03nFIvg&s=19
The least you can do is to bind clojure.test/*test-out*
to *out*
when running tests to forward output to Reveal
Ah got it. I'll try that & see how it improves the output. What was your idea for a test runner integration?
That runs tests, accumulates outputs separately per test, displays diffs between expected/actual..
That'd be cool. This is something critical for me to have prior to switching. I'd like to look at implementing this as a library, perhaps this weekend. I'm curious what you thought the var & ns test output might look like?
I haven't thought it through, but I imagined something similar to IDEA's test output pane as seen in java projects - a tree of test contexts with progress reports and test output panel that shows output per selected test in a tree
Thank you for the quick responses. I'll fiddle with this idea this weekend. Never used cljfx so progress will probably be slow 🙂
Still a ways to go, but basic structure is in place. Goal is to copy Cursive's test runner output: https://cursive-ide.com/userguide/testing.html#test-runner