Yeah, it's basically the same, but you don't specify an output file,
instead you use an output directory.
In cucumber-jvm, things are using the new-ish cucumber-html[0] package,
which uses javascript to render the html report based on a report.js
output by cucumber-jvm
use "--format html --out target " if you're using maven, and you should
see an index.html, report.js and formatter.js in that directory
Hope that helps,
David
Cucumber-JVM doesn't support config.yml. However, there is a HTML
reporter you can use. --format html --out someexistingdir
Aslak
> --
> You received this message because you are subscribed to the Google Groups "Cukes" group.
> To post to this group, send email to cu...@googlegroups.com.
> To unsubscribe from this group, send email to cukes+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/cukes?hl=en.
>
Yes, I'm afraid the HTML formatter won't be accessible from JUnit
until https://github.com/cucumber/cucumber-jvm/issues/160 is fixed.
Aslak
> --
> You received this message because you are subscribed to the Google Groups
> "Cukes" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/cukes/-/u9IrMi-kSJAJ.
> Sorry, I'm not getting it
>
>> use "--format html --out target " if you're using maven, and you should
>> see an index.html, report.js and formatter.js in that directory
>
> This implies I should put those flags in config.yml? They're not
> command line arguments
>
>> Cucumber-JVM doesn't support config.yml. However, there is a HTML
>> reporter you can use. --format html --out someexistingdir
>
> This implies config.yml is not the correct place to put those
> arguments but I'm not sure where they go.
>
Uhm. On the command line?
Aslak
>> found it in https://github.com/dkowis/Cucumber-JVM-Example. Thx
> I had a look and can't find anything like --format html in the source
> for that example project, could you point me to the file?
>
>> Yes, I'm afraid the HTML formatter won't be accessible from JUnit
>> until https://github.com/cucumber/cucumber-jvm/issues/160 is fixed.
>
> This implies that because I'm using the JUnit test runner (via mvn) I
> can't get a pretty report? The example above (rackstack) uses JUnit
> though.
>
> I'm confused
>
> --
> You received this message because you are subscribed to the Google Groups "Cukes" group.
> "mvn install --format html --out target"
> insists that neither --format or --out are recognised options
>
See how it's done in
https://github.com/cucumber/cucumber-jvm/blob/master/examples/java-webbit-websockets-selenium/pom.xml
Aslak
Here is an example of how you can generate the HTML report:
You don't need anything special in your pom - as far as maven is
concerned it's just regular junit.
HTH,
Aslak
> Thank you.
>
>
> Le dimanche 19 février 2012 18:30:18 UTC-5, The Trav a écrit :
>>
>> Ok, so previously I've been used to seeing the nice cucumber html
>> report after test runs.
>>
>> Since moving to cucumber-jvm I've been getting regular junit surefire
>> reports, which are perfectly functional, but not as impressive / nice
>> looking.
>>
>> I previously achieved the pretty report by having /config/cucumber.yml
>> contain the line:
>> html_report: --format progress --format html --out=cucumber.html
>>
>> However adding that in my current project makes no difference.
>>
>> Is there any place I can look to figure out how that works?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Cukes" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/cukes/-/dFxwelk-IXEJ.
On 25 Jul 2013 15:59, "Алексей Панащенко" <panashc...@gmail.com> wrote:
>
> I try create cucumber.json for report in cucumber-jvm 1.3, but file didn't generate( I try https://github.com/cucumber/cucumber-jvm/blob/master/examples/java-webbit-websockets-selenium/src/test/java/cucumber/examples/java/websockets/RunCukesTest.java
> but it's doesn't work for me. Can anybody give some hitns how i can create this file for reporting?
Your question does not seem to be related to the thread you are replying to (breaking rule 3 of this group) and you are top posting (breaking rule 2). Please read the group rules and start a new thread.
Paolo
> --
> -- Rules --
>
> 1) Please prefix the subject with [Ruby], [JVM] or [JS].
> 2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
> 3) If you have a question, don't reply to an existing message. Start a new topic instead.
>
> You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cu...@googlegroups.com. To unsubscribe from this group, send email to cukes+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
> ---
> You received this message because you are subscribed to the Google Groups "Cukes" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to cukes+un...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>