core.clj 482 B

1234567891011121314
  1. (ns logseq.e2e.core
  2. (:require [eftest.runner :as eftest]))
  3. (defn -main
  4. [& _args]
  5. (println "\nRunning tests...")
  6. (let [{:keys [fail error]} (eftest/run-tests (eftest/find-tests "test") {:multithread? :namespaces})
  7. exit-code (cond
  8. (and (pos? fail)
  9. (pos? error)) 30
  10. (pos? error) 20
  11. (pos? fail) 10
  12. :else 0)]
  13. (System/exit exit-code)))