Closed elarkin closed 9 years ago
We would like to have this feature as well. Thanks!
Sorry for the delay.
When I run lein midje
with a project file that doesn't have a :midje
profile, I get:
(Warning: profile :midje not found.)
It's not obvious to me how to get rid of this. Help?
Additional question: Is it intended that midje itself be in the :midje profile, like this:
:profiles {:midje {:dependencies [[midje "1.7.0"]]}
That won't work for many (most?) people because it won't work with the common usage:
% lein repl
user> (use 'midje.repl)
user> (autotest)
Oops, I see that the previous question was answered in the original pull request.
I fixed the warning problem with https://github.com/marick/lein-midje/blob/master/src/leiningen/midje.clj#L160 I don't know how good a fix that is.
There are some settings that I would like to set only for test runs (like changing the java-opts to use a different log4j configuration properties file).
Currently, I can place those settings in the :dev profile, but those settings also take effect when using "lein run"
This enhancement allows me to have a midje-specific profile in which to house those settings.