James Reeves
James Reeves
I'll update the README to be clearer, but in essence, the only "development mode" is "lein ring server" without the LEIN_NO_DEV environment var set.
Lein-Ring probably needs to be changed to ignore files in the test directories. Patches are welcome.
Have lein-ring exclude the project test paths from the reload-paths.
It's probably not worth having by default. People can always override it with :reload-paths.
Take the simplest approach and just cut out the test paths. Since it's customisable we don't need to think too hard about the defaults. We just need something that works...
My recollection of Midje is that merely loading the test namespace also executes the tests. I don't know if this has been fixed, or if my recollection is wrong, but...
> You mean just declaring tests in a namespace should not execute any testing code unless you actually run the test suite? Yes, that's right. Loading a namespace should be...
You can customize these by adding `:reload-paths` and `:refresh-paths` to the `:ring` options in your project.clj file.
Yes please.
I suspect that [this line](https://github.com/weavejester/lein-ring/blob/master/src/leiningen/ring/util.clj#L18) is causing the issue. It should probably be `:target-path` rather than `:compile-path`.