Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #1 from joshuaeckroth/master

Updated for recent stable Lein and Clojure 1.2
  • Loading branch information...
commit 55df45156a22199a4b8e6590d5be27178a60177c 2 parents 45e8e68 + bb97b6a
@technomancy authored
Showing with 8 additions and 10 deletions.
  1. +1 −1  README.md
  2. +3 −4 project.clj
  3. +4 −5 src/leiningen/radagast.clj
View
2  README.md
@@ -14,7 +14,7 @@ rely on Radagast to tell you if your tests are good!
For now it only works as a Leiningen plugin. Include it as a
dev-dependency in your project.clj:
- :dev-dependencies [[radagast "1.0.0"]]
+ :dev-dependencies [[radagast "1.1.0"]]
Then you can use it:
View
7 project.clj
@@ -1,5 +1,4 @@
-(defproject radagast "1.0.0"
+(defproject radagast "1.1.0"
:description "Simplistic test coverage."
- :dev-dependencies [[org.clojure/clojure "1.1.0"]
- [org.clojure/clojure-contrib "1.1.0"]
- [swank-clojure "1.2.1"]])
+ :dev-dependencies [[org.clojure/clojure "1.2.0"]
+ [org.clojure/clojure-contrib "1.2.0"]])
View
9 src/leiningen/radagast.clj
@@ -3,8 +3,7 @@
(defn radagast [project & nses]
(eval-in-project
- project `(do (require '~'radagast.coverage)
- (binding [radagast.coverage/*ns-must-match*
- ~(:radagast/ns-whitelist project)]
- (@(ns-resolve '~'radagast.coverage '~'coverage)
- ~@nses)))))
+ project `(binding [radagast.coverage/*ns-must-match*
+ ~(:radagast/ns-whitelist project)]
+ (radagast.coverage/coverage ~@nses))
+ nil nil '(require 'radagast.coverage)))
Please sign in to comment.
Something went wrong with that request. Please try again.