Fork me on GitHub
#cider
<
2017-12-04
>
chadhs02:12:47

Is there a good way to make running tests via cider and using environ to define a test db url play nice together?

chadhs02:12:21

if i run lein test my tests work with my test profile, but when using cider it uses my dev profile.

kardan07:12:16

We had that issue, in the end defined what db to use for tests independent of profiles. Not sure if there is a good solution

dominicm07:12:12

cider runs "inside" leiningen, it cannot control leiningen.

chadhs14:12:21

@dominicm i had the realization a bit after posting here as well.

chadhs14:12:35

@kardan i’m going to do something similar. a full test run im a ci pipeline can use a defined test profile and therefore db, i’m just going to be ok with cider running tests against my local dev profile for convenience of quick testing feedback