Skip to content

Commit

Permalink
Don't try to read the test results doc if it doesn't exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed Jun 2, 2010
1 parent e874ddf commit 8667bac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/leiningen/test.clj
Expand Up @@ -58,7 +58,9 @@ tests. If none are given, runs them all."
(with-version-guard
(form-for-testing-namespaces namespaces
(.getAbsolutePath result))))
(let [summary (read-string (slurp (.getAbsolutePath result)))
success? (zero? (+ (:error summary) (:fail summary)))]
(.delete result)
(if success? 0 1))))
(if (.exists result)
(let [summary (read-string (slurp (.getAbsolutePath result)))
success? (zero? (+ (:error summary) (:fail summary)))]
(.delete result)
(if success? 0 1))
1)))
2 changes: 2 additions & 0 deletions todo.org
Expand Up @@ -20,6 +20,7 @@ Leiningen TODOs
* For 1.2.0
** TODO disable frickin [null] logging from ant (come on srsly)
** TODO document all known project.clj keys
** DONE recover from missing test exit map gracefully
** DONE Help task should display arglist
** DONE walk up the filesystem to find project.clj
** DONE make inter-task dependencies honor hooks
Expand All @@ -33,6 +34,7 @@ Leiningen TODOs
** DONE classpath task to just print configured classpath
** DONE move repl task from shell script to clojure code
* For later
** TODO bin script has stabilized; self-install for dev versions should work
** TODO differentiate between ns-level/fn-level help docstrings
** TODO a list of dirs to include in the jar when building
** TODO set arbitrary jar metadata
Expand Down

0 comments on commit 8667bac

Please sign in to comment.