This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-03-30
Channels
- # aleph (2)
- # announcements (8)
- # babashka (12)
- # beginners (34)
- # calva (36)
- # cherry (3)
- # cider (1)
- # clj-kondo (11)
- # clj-otel (6)
- # cljdoc (31)
- # clojure (121)
- # clojure-conj (1)
- # clojure-czech (2)
- # clojure-europe (109)
- # clojure-nl (1)
- # clojure-norway (5)
- # clojure-uk (3)
- # cursive (3)
- # datahike (1)
- # datomic (9)
- # deps-new (6)
- # docker (5)
- # emacs (21)
- # fulcro (4)
- # hoplon (16)
- # introduce-yourself (2)
- # london-clojurians (5)
- # lsp (87)
- # malli (17)
- # missionary (1)
- # nbb (27)
- # off-topic (257)
- # pathom (4)
- # portal (42)
- # practicalli (1)
- # rdf (3)
- # releases (2)
- # shadow-cljs (49)
- # slack-help (3)
- # timbre (2)
if I want to conditionally start a repl, is there non-programmatic ways to do this (like for socket repl on the JVM using a system prop) or do I need to do this as part of my entry point?
nrepl-server does support an initial expression that you can execute, so you can compose that way
I thought it was also implemented for nrepl, but it looks like it's only there fore the console REPL: https://github.com/babashka/nbb/commit/6a1ff769df2afe0e642a57de9dda31145f722313 But it could be done for nrepl as well
what I mean is: you can programmatically start an nREPL server and do an :init
expression in there, and e.g. execute a function that you would otherwise have executed with -m
but your test runner also has an API function, so you could programmatically start your test runner?
I think programmatically using your test runner is the most flexible / composable option
let the user compose what they want, instead of guessing what the user might want to compose beforehand
@U5H74UNSF I have a fork of the cognitect test runner with some additional niceties.
or not a fork, but a "wrapper": https://github.com/babashka/cli/blob/main/test/babashka/test_runner.clj
I see I don't have the printing of the test in there, but it's what I do usually in user space
@U5H74UNSF What was your idea btw? The test runner runs the tests AND you have REPL, but then?