Skip to content

Commit 2d70c52

Browse files
committed
Merge PR cucumber#805 'Fix to allow lein test to to run successfully'
Update History.md.
2 parents 1934b89 + 766ef6c commit 2d70c52

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

History.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## [1.2.4-SNAPSHOT](https://github.com/cucumber/cucumber-jvm/compare/v1.2.3...master) (In Git)
22

3+
* [examples] Fix to allow lein test to to run successfully ([#805](https://github.com/cucumber/cucumber-jvm/pull/805) Chris Howe-Jones)
4+
35
## [1.2.3](https://github.com/cucumber/cucumber-jvm/compare/v1.2.2...v1.2.3) (2015-07-07)
46

57
* [Core] Make the Rerun Formatter consistent with the exit code ([#871](https://github.com/cucumber/cucumber-jvm/pull/871) Björn Rasmusson)

examples/clojure_cukes/project.clj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,9 @@
22
:description "A demo of Cucumber with Clojure and Leiningen"
33
:dependencies [[org.clojure/clojure "1.6.0"]]
44
:plugins [[lein-cucumber "1.0.2"]]
5-
:cucumber-feature-paths ["test/features/"])
5+
:cucumber-feature-paths ["test/features/"]
6+
:profiles
7+
{:dev
8+
{:dependencies [[lein-cucumber "1.0.2"]
9+
[info.cukes/cucumber-core "1.1.1"]]}}
10+
)
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
(ns clojure-cukes.test.core
22
(:use [clojure-cukes.core])
3-
(:use [clojure.test]))
3+
(:use [clojure.test])
4+
(:use [leiningen.cucumber])
5+
(:import [cucumber.api.cli Main]))
46

57
(deftest run-cukes
6-
(. cucumber.api.cli.Main (main (into-array ["--plugin" "pretty" "--glue" "test/features/step_definitions" "test/features"]))))
8+
(. cucumber.api.cli.Main (main (into-array ["--format" "pretty" "--glue" "test" "test/features"]))))

examples/clojure_cukes/test/features/cukes.feature

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
Feature: Cukes
2-
An example of testing Clojure with cucumber. The last 'Then' of
3-
'eat 1 cuke' is failing. Change the "happy" to "meh" to make
4-
it pass.
2+
An example of testing Clojure with cucumber. To see a failure try changing
3+
the last 'Then' of 'eat 1 cuke' "meh" to "happy".
54

65
Scenario: in the belly
76
Given I have 4 big "cukes" in my belly

0 commit comments

Comments
 (0)