Fork me on GitHub
#leiningen
<
2016-07-19
>
niquola12:07:49

Hi all, stupid question, is there any way to inject some initialization code, which will be executed once before all tests

ghadi19:07:38

lein sample | less will show you all the options -- look for one called :injections

daveliepmann20:07:56

To anyone interested in my question from yesterday about getLocalizedMessage: the relevant section appears to me to be https://github.com/technomancy/leiningen/blob/master/leiningen-core/src/leiningen/core/main.clj#L402 but I fixed the issue in my own application first by re-throwing a new exception with a .toString message (see https://github.com/daveliepmann/uruk/commit/58527823dca57bc10cf5dd6ac3959d1e867ae85b ) and then by re-throwing a new exception using slingshot to combine the stack trace (see https://github.com/daveliepmann/uruk/commit/faf080d205f690584d546ad4f40c47783598d55e). Hope this helps anyone who comes back with a similar issue.