Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix to allow lein test to to run successfully #805

Merged
merged 2 commits into from
Jul 8, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion examples/clojure_cukes/project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@
:description "A demo of Cucumber with Clojure and Leiningen"
:dependencies [[org.clojure/clojure "1.6.0"]]
:plugins [[lein-cucumber "1.0.2"]]
:cucumber-feature-paths ["test/features/"])
:cucumber-feature-paths ["test/features/"]
:profiles
{:dev
{:dependencies [[lein-cucumber "1.0.2"]
[info.cukes/cucumber-core "1.1.1"]]}}
)
6 changes: 4 additions & 2 deletions examples/clojure_cukes/test/clojure_cukes/test/core.clj
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
(ns clojure-cukes.test.core
(:use [clojure-cukes.core])
(:use [clojure.test]))
(:use [clojure.test])
(:use [leiningen.cucumber])
(:import [cucumber.api.cli Main]))

(deftest run-cukes
(. cucumber.api.cli.Main (main (into-array ["--plugin" "pretty" "--glue" "test/features/step_definitions" "test/features"]))))
(. cucumber.api.cli.Main (main (into-array ["--format" "pretty" "--glue" "test" "test/features"]))))
5 changes: 2 additions & 3 deletions examples/clojure_cukes/test/features/cukes.feature
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
Feature: Cukes
An example of testing Clojure with cucumber. The last 'Then' of
'eat 1 cuke' is failing. Change the "happy" to "meh" to make
it pass.
An example of testing Clojure with cucumber. To see a failure try changing
the last 'Then' of 'eat 1 cuke' "meh" to "happy".

Scenario: in the belly
Given I have 4 big "cukes" in my belly
Expand Down