Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix the test subcommand for lein2 (Issue #122).

  • Loading branch information...
commit 9d86702ddefaec6dc6b9ca077b3607b27cda4cb6 1 parent e2915e0
@emezeske authored
Showing with 3 additions and 6 deletions.
  1. +3 −6 plugin/src/leiningen/cljsbuild.clj
9 plugin/src/leiningen/cljsbuild.clj
@@ -154,9 +154,8 @@
(defn- test
"Run ClojureScript tests."
[project options args]
- (let [build-ids nil
- compile-result (run-compiler project options build-ids false)]
- (if (not= compile-result exit-code-success)
+ (let [compile-result (run-compiler project options nil false)]
+ (if (and (not lein2?) (not= compile-result exit-code-success))
(run-tests project options args))))
@@ -247,9 +246,7 @@
(defn test-hook [task & args]
(skip-if-prepping task args
(apply task args)
- (let [test-results (run-tests (first args) (config/extract-options (first args)) [])]
- (if (not= test-results exit-code-success)
- (exit-failure)))))
+ (run-tests (first args) (config/extract-options (first args)) [])))
(defn clean-hook [task & args]
(skip-if-prepping task args
Please sign in to comment.
Something went wrong with that request. Please try again.