When running cider-test-run-ns-tests
I get the message No assertions (or no tests) were run.Did you forget to use 'is' in your tests?
unless I load the file with my tests in it. Is this expected behavior? Is there anyway to have cider-test-run-ns-tests
load those tests automatically?
So this is probably already answered, but is there a way to have Cider pick up new dependencies in an ns-require statement and in a leinigen project.clj? Or do I have to restart the Cider process and re-jack-in ?
As far as I know, you need to restart the Cider process and re-jack-in (unless you are using pomegranate
). There is some work in progress in CIDER to let this work, but as far as I know, there are still some missing pieces.
Alright, thanks.
goodmorning/day/evening
With the latest changes in c.t.d there are some changes on how the -m
is handled and current cider jack-in fails in certain situations
for instance i have this test
alias
:test {:extra-paths ["test"]
:extra-deps {lambdaisland/kaocha {:mvn/version "1.0.690"}
lambdaisland/kaocha-cloverage {:mvn/version "1.0.63"}
lambdaisland/kaocha-junit-xml {:mvn/version "0.0.76"}
ring/ring-mock {:mvn/version "0.3.2"}
mockery {:mvn/version "0.1.4"}
http-kit.fake/http-kit.fake {:mvn/version "0.2.1"}}
:main-opts ["-m" "kaocha.runner"]}
doing cider-jack-in
fails because of multiple -m
one from test/main-opts
and another from the cider
The recommendation from #tools-deps was to define alias for cider and specify -main-opts
in the alias:
clojure -Sdeps '{:deps ... :aliases {:cider/jack-in {:main-opts ["-m" ...]}}}' -M:dev:test:cider/jack-in --middleware ...
what do you think about this?https://github.com/clojure-emacs/cider/issues/2941 created for you @kirill.salykin. add any context you feel i missed
wow, thanks!
if you could put a minimal repro that would be helpful. obviously those deps but perhaps a single ns with a test? be nice to confirm that your exact situation would work
I’ll try to do it tomorrow link to github repo is enough? @dpsutton
actually i think i can do it
I am about to go to bed, please let me know how i can help tomorrow
did the auto-test-mode stopped working some time ago
or is it just me?
Sorry, I obviously didnt understand the issue... seems some of the context is not covered here. I'll look over the issue in more detail.
the point of this is to dictate which main function is run. if an alias contains a main function it will be run rather than the cider.nrepl one. the point of this issue is to ensure that the cider.nrepl main always wins the way multiple mains are managed
its not an external test runner when its just on the classpath.