Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Removed obsolete cuke.clj

  • Loading branch information...
commit 5a16f3851a0f6a8e1a586e65e0eb9f5dd3149622 1 parent 47f5ac3
Nils Wloka authored April 29, 2012

Showing 1 changed file with 0 additions and 28 deletions. Show diff stats Hide diff stats

  1. 28  clojure/src/main/clj/leiningen/cuke.clj
28  clojure/src/main/clj/leiningen/cuke.clj
... ...
@@ -1,28 +0,0 @@
1  
-(ns leiningen.cuke
2  
-  (:require [leiningen.compile :as lc]
3  
-            [leiningen.core :as c]))
4  
-
5  
-(defn cuke
6  
-  "runs cucumber"
7  
-  [project]
8  
-  ;; basically a reimplimentation of cli.Main that doesn't annoyingly
9  
-  ;; call System/exit
10  
-  (lc/eval-in-project
11  
-   project
12  
-   `(let [~'runtime (cucumber.runtime.Runtime.
13  
-                     (list* ["test/cucumber"])
14  
-                     (cucumber.io.FileResourceLoader.) false)
15  
-          mformatter# (doto (cucumber.formatter.MultiFormatter.)
16  
-                        (.add (.createFormatter
17  
-                               (cucumber.formatter.FormatterFactory.)
18  
-                               "pretty" System/out)))
19  
-          formatter#  (.formatterProxy mformatter#)]
20  
-      (.run ~'runtime
21  
-            (list* ["test/cucumber/features"])
22  
-            (list)
23  
-            formatter#
24  
-            (.reporterProxy mformatter#))
25  
-      (.done formatter#)
26  
-      (println)
27  
-      ~(when-not c/*interactive?*
28  
-         `(System/exit (.exitStatus ~'runtime))))))

0 notes on commit 5a16f38

Please sign in to comment.
Something went wrong with that request. Please try again.