-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Readme: Add an example of how to integrate with ultra or eftest #71
Comments
@buzzdan I'm not sure it is possible to use eftest with test-refresh without code changes to test-refresh. Using lein-test-refresh's I'm guessing with ultra you're interested in getting better test reporting? If so, I'd recommend using humane-test-output. It works well. This article is my current setup (except with older version numbers in it). It sets up humane-test-output and configures lein-test-refresh to suppress noisy |
I didn't have any trouble with using |
|
I have tried use a a report from eftest as explained in https://github.com/jakemcc/lein-test-refresh/blob/70f5ed6206efe74b09b48643291c7cecdcd88321/sample.project.clj#L40 (defproject pedestal-todo-list "0.0.1-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.10.1"]
[io.pedestal/pedestal.service "0.5.8"]
;; Remove this line and uncomment one of the next lines to
;; use Immutant or Tomcat instead of Jetty:
[io.pedestal/pedestal.jetty "0.5.8"]
;; [io.pedestal/pedestal.immutant "0.5.8"]
;; [io.pedestal/pedestal.tomcat "0.5.8"]
[ch.qos.logback/logback-classic "1.2.3" :exclusions [org.slf4j/slf4j-api]]
[org.slf4j/jul-to-slf4j "1.7.26"]
[org.slf4j/jcl-over-slf4j "1.7.26"]
[org.slf4j/log4j-over-slf4j "1.7.26"]
[eftest "0.5.9"]]
:plugins [[com.jakemccrary/lein-test-refresh "0.24.1"]]
:test-refresh {:report eftest.report.progress/report}
:min-lein-version "2.0.0"
:resource-paths ["config", "resources"]
;; If you use HTTP/2 or ALPN, use the java-agent to pull in the correct alpn-boot dependency
;:java-agents [[org.mortbay.jetty.alpn/jetty-alpn-agent "2.0.5"]]
:profiles {:dev {:aliases {"run-dev" ["trampoline" "run" "-m" "pedestal-todo-list.server/run-dev"]}
:dependencies [[io.pedestal/pedestal.service-tools "0.5.8"]]
:plugins [[com.jakemccrary/lein-test-refresh "0.24.1"]]}
:uberjar {:aot [pedestal-todo-list.server]}}
:main ^{:skip-aot true} pedestal-todo-list.server) but I got a Null Pointer Exception error from the REPL:
@jakemcc do you have any idea about how could I solve it? 👀 |
@lipemorais I followed that stack trace and took a look at what that You'd need to be able to swap in the runner. This actually already happens for cirleci's runner. I'm not sure if something similar would work for eftest. |
Oh good! Thanks for the explanation. I had the wrong understanding that it would work just because it implementes the parts need from |
i still could find a way to integrate lein-test-refresh with ultra / eftest together
I'd appriciate an example in the readme
thanks a lot
Dan
The text was updated successfully, but these errors were encountered: