This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-04-15
Channels
- # announcements (10)
- # beginners (113)
- # calva (2)
- # cider (75)
- # clj-kondo (1)
- # cljdoc (2)
- # clojure (142)
- # clojure-europe (11)
- # clojure-gamedev (6)
- # clojure-italy (7)
- # clojure-nl (8)
- # clojure-spec (3)
- # clojure-uk (50)
- # clojurescript (47)
- # cursive (7)
- # data-science (22)
- # datomic (12)
- # dirac (3)
- # events (1)
- # fulcro (114)
- # gorilla (1)
- # jackdaw (5)
- # joker (3)
- # kaocha (10)
- # leiningen (1)
- # liberator (2)
- # mount (6)
- # nrepl (1)
- # off-topic (16)
- # pathom (34)
- # pedestal (3)
- # re-frame (19)
- # reagent (11)
- # remote-jobs (5)
- # shadow-cljs (127)
- # spacemacs (12)
- # test-check (15)
- # tools-deps (8)
- # vim (4)
I'm seeing some weird profile behaviour when running tests. Profiles section looks as follows:
:profiles
{:dev [:profiles/dev
:profiles/base-test]
:ci [:profiles/ci
:profiles/base-test]
:repl {:prep-tasks ^:replace ["javac" "compile"]}
:uberjar {:aot :all}
:profiles/base-test {:dependencies [[eftest "0.5.7"]]}
:profiles/dev {:resource-paths ["profiles/dev/resources"]}
:profiles/ci {:resource-paths ["profiles/dev/resources"]}}
Note that the two modified resource paths are the same on purpose. Yet when I do lein with-profile ci eftest :service
the tests work correctly, but when run either as lein eftest :service
(relying on the :default
profile merging in :dev
) or as lein with-profile dev eftest :service
, the tests fail since they are trying to read a config file from the resources directory.
Can someone spot what I am missing?