             riemann.time
             [riemann.test :as test]
             riemann.pubsub
+            [clojure.test.junit :refer [with-junit-output]]
             [cemerick.pomegranate :as pom]
             [clojure.java.io :as io]
             [clojure.tools.logging :refer :all])

      (get (re-find #"^(\d+).*" name) 1)
      (catch Exception e name))))

(defn -main
  "Start Riemann. Loads a configuration file from the first of its args."
  ([]

                (riemann.config/include @config-file)
                (binding [test/*streams* (:streams @config/next-core)]
                  (let [test-name-pattern (if test-name (re-pattern test-name) #".*-test")
                        results (run-tests test-name-pattern)]
                    (if (and (zero? (:error results))
                             (zero? (:fail results)))
                      (System/exit 0)
