This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-12-24
Channels
- # adventofcode (25)
- # asami (39)
- # beginners (39)
- # biff (12)
- # clojure (53)
- # clojure-dev (4)
- # clojure-europe (6)
- # clojure-hungary (1)
- # clojure-norway (4)
- # clojure-spec (3)
- # conjure (2)
- # cursive (1)
- # dev-tooling (9)
- # emacs (4)
- # introduce-yourself (2)
- # juxt (4)
- # membrane (8)
- # off-topic (3)
- # polylith (8)
- # portal (4)
- # releases (1)
- # scittle (9)
- # sql (11)
- # squint (5)
- # xtdb (12)
Do you guys think it's possible to use this with polylith? So far the test runner doesn't seem to detect the tests
macro:
https://github.com/hyperfiddle/rcf
Unfortunately, RCF is problematic in terms of tests that can be run by external test runners. See issues #31 and #41 and there are others as well. Having tests in source files is unusual, to start with, so some test runners have to be told to check source namespaces, not just test namespaces. In addition, RCF has to be run in a specific context to generate deftest
-compatible tests and it does so by generating test names based on aspects of the code -- so the test names are not stable (they change as you edit the code) so you can't use that mode with a REPL, which means you can't run RCF tests via most editors' integrated testing facilities.
I like the idea of RCF and I tried to use it on my own projects but the obstacles were just too great. I talked to the RCF team about it -- some of those issues on the repo came out of those discussions -- but they deferred any action on them until "after the rewrite" and I don't know where the project is regarding that today.
So, it'll stay a nice idea then, thanks @U04V70XH6!
If they address test name stability and a few other issues, RCF could be used a lot more widely. I don't know whether poly test
would find tests in source code... that might be more of an obstacle.
Interesting, there is also this. Will try it out later: https://github.com/ieugen/poly-rcf
Ok, it actually wasn't that hard to implement. The repo above has nailed the right recipe, the test runner now picks up the tests from tests
macro. I will report if something goes wrong.