nilswloka/lein-cucumber

More configuration options

Closed this issue · 9 comments

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

  • :cucumber-output-dir for configuring the output directory
  • :cucumber-output-format for configuring the output format

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

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.

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

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

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.

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//issues/5#issuecomment-17292278
.

mva commented

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

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//issues/5#issuecomment-17292841
.

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