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)
Hello! Is there a way to run tests only for namespaces affected by recent changes and not for the whole project?
Lein doesn't bundle this
If you want to run tests on save, https://github.com/jakemcc/test-refresh does that
If you want to inspect the git status for obtaining a corpus, https://github.com/nedap/formatting-stack/blob/465ecbdb6f29a370f1d149ca2f78a96c57937cd4/src/formatting_stack/processors/test_runner.clj#L2-L6 does that
(that's the impl; here's how a project integration would look like. It's just calling test!
https://github.com/nedap/speced.def/blob/00e283c901b6433b7e8638b7ab683ddc937ab20f/dev/dev.clj#L34-L38)
I will look into them thanks 🙂