nilswloka / lein-cucumber

A simple leiningen plugin for running clojure-based cucumber-jvm specifications.
The Unlicense
39 stars 26 forks source link

More configuration options #5

Closed nilswloka closed 11 years ago

nilswloka commented 12 years ago

Add configuration options (analogous to :cucumber-feature-path):

nilswloka commented 12 years ago

Not sure whether this is still needed now that lein cucumber takes command line options.

rplevy-draker commented 12 years ago

I think it is still good to be able to specify it in the project file, because in practice you want to be able to just type "lein cucumber" in the shell.

rplevy-draker commented 12 years ago

Oh, I misread, I thought you were talking about :cucumber-feature-path, sorry. But my 2 cents would remain the same. :)

yatesco commented 11 years ago

Can I use a command line parameter to change the default report? I also would like to produce a junit report (to help Jenkins a bit)

mva commented 11 years ago

I'm using calls like lein cucumber --format pretty to change the report format. This works, because the command line options are passed on to cucumber. Cucumber also knows the --help option if I remember correctly, but nowadays this is evaluated directly by lein-cucumber and unfortunately its output does not include cucumber's usage summary.

yatesco commented 11 years ago

Excellent - thanks. If I use 'junit' as the format it complains that I must specify 'junit:output'. I have tried a couple of ways but both fail:

[code] lein cucumber --format junit -Djunit:output=test.xml cucumber.runtime.CucumberException: You must supply an output argument to junit. Like so: junit:output [/code]

and

[code] lein cucumber --format junit junit:output=test.xml cucumber.runtime.CucumberException: You must supply an output argument to junit. Like so: junit:output [/code]

Any ideas?

On 1 May 2013 18:05, Michael van Acken notifications@github.com wrote:

I'm using calls like lein cucumber --format pretty to change the report format. This works, because the command line options are passed on to cucumber. Cucumber also knows the --help option if I remember correctly, but nowadays this is evaluated directly by lein-cucumber and unfortunately its output does not include cucumber's usage summary.

— Reply to this email directly or view it on GitHubhttps://github.com/nilswloka/lein-cucumber/issues/5#issuecomment-17292278 .

mva commented 11 years ago

Maybe lein cucumber --format junit:test.xml?

yatesco commented 11 years ago

Doh! Thanks Michael.

On 1 May 2013 18:15, Michael van Acken notifications@github.com wrote:

Maybe lein cucumber --format junit:test.xml?

— Reply to this email directly or view it on GitHubhttps://github.com/nilswloka/lein-cucumber/issues/5#issuecomment-17292841 .

nilswloka commented 11 years ago

I'm going to close this issue because, as @mva described, you can just configure the underlying Cucumber Runtime directly.