marick/lein-midje

Status queries against lein midje :autotest

Opened this issue · 1 comments

I imagine a server mode for lein midje :autotest where it would report the last status of the tests, e.g. using a HTTP API returning JSON objects:

GET("/api/v1/tests")
=> [{:namespace 'name.space}]
GET("/api/v1/tests/:namespace/status")
=> {:namespace 'name.space
    :filename "/full/path"
    :status :failure/:success/...
    :message "Detailed failure information from the test engine"
    :coverage 0.1234}

I like the idea of a server mode. I'm now moving from Clojure to Elixir/Erlang, have naturally been thinking of testing extensions, and the idea of a test server fits naturally into that.

But I do not expect to do more work on lein-midej.