(ns leiningen.difftest
  (:require [leiningen.test :as test]))

(defn difftest [project & args]
  (apply test/test (-> project
                       (update-in [:injections] conj
                                  '((ns-resolve (doto 'difftest.core
                                                  require) 'activate)))
                       (update-in [:dependencies] into {'difftest "1.3.8"}))
         args))
(ns leiningen.difftest
  (:require [leiningen.test :as test]
            [leiningen.core.project :as project]))

(def profile
  {:injections ['((ns-resolve (doto 'difftest.core require) 'activate))]
   :dependencies [['difftest "1.3.8"]]})

(defn difftest
  "Run tests with improved failure output."
  [project & args]
  (apply test/test (project/merge-profiles project [profile]) args))
Implement injections in terms of a profile.
Implement injections in terms of a profile.

brentonashworth/lein-difftest