I don’t know how I am managing this but my “lein ring server-headless 3001” Liberator service appears to be running my test suite every time a request comes in. I’m a little baffled how this is the case. Would appreciate any insights anyone has.
do you use something like wrap-reload?
ordnungswidrig: i don’t have wrap-reload in my app definition
lein classpath tells me my tests are on the classpath, which i would expect
but i’m not sure if it amends the classpath when running the server
are you using midje or clojure.test?
expectations
my app setup: https://gist.github.com/mmower/46644f306e895c35a91c
Nothing jumping into my eye.
Try bisecting, omit routes etc. and look if it stops.
lein-ring defaults to :autoreload true
I guess somewhere in your test namespace you have a toplevel expression that triggers the expectations to be run. (I’m no expert on expectsions
though)