Cucumber Jenkins Plugin

11,050 views
Skip to first unread message

kingsleyh

unread,
May 21, 2012, 1:36:38 PM5/21/12
to cu...@googlegroups.com
Hi, 

If anyone is using Jenkins/Hudson

I have written a cucumber plugin for jenkins to display the cucumber results beautifully:

I have found it very useful personally so thought I would share it with you :)

Thanks

--Kingsley

kingsleyh

unread,
May 21, 2012, 1:38:51 PM5/21/12
to cu...@googlegroups.com
oops just saw the rules - sorry don't know how to edit the subject line now - but I would put [Cucumber][JVM][RUBY] retrospectively

Yogesh Aggarwal

unread,
May 22, 2012, 9:50:48 AM5/22/12
to cu...@googlegroups.com
HI Kingsley,

Thanks for writing the plugin!

I am interested in using this plugin in my current project. I am currently new to jenkins and this plugin. Plugin https://github.com/masterthought/jenkins-cucumber-jvm-reports-plugin-java doesn't list out the detailed steps for using this plugin.

Can you please provide some detailed steps :
You mentioned to install this plugin in jenkins and then restart the jenkins. But how to install this plugin in jenkins after downloading it?
Please list out some steps in detail.
I have created a cucumber-jvm project using selenium and Maven.

Thanks,
Yogesh Aggarwal

David Kowis

unread,
May 22, 2012, 10:29:12 AM5/22/12
to cu...@googlegroups.com
Thanks a lot for this work! It's much appreciated by my team :D

David

Augusto Evangelisti

unread,
May 22, 2012, 12:15:19 PM5/22/12
to cu...@googlegroups.com
On Monday, 21 May 2012 18:36:38 UTC+1, kingsleyh wrote:
We have been using your tool in my team for a couple of weeks now and it is extremely helpful, thanks a million!

Augusto

Matthew

unread,
May 24, 2012, 4:43:54 PM5/24/12
to cu...@googlegroups.com
On Wednesday, 23 May 2012 01:50:48 UTC+12, Yogesh Aggarwal wrote:
HI Kingsley,

Thanks for writing the plugin!

I am interested in using this plugin in my current project. I am currently new to jenkins and this plugin. Plugin https://github.com/masterthought/jenkins-cucumber-jvm-reports-plugin-java doesn't list out the detailed steps for using this plugin.

Can you please provide some detailed steps :
You mentioned to install this plugin in jenkins and then restart the jenkins. But how to install this plugin in jenkins after downloading it?

 
Please list out some steps in detail.
I have created a cucumber-jvm project using selenium and Maven.

Just take note that at present its for Freestyle projects only - so you'll either need to do another freestyle build as described on the page above, or tack another build on the end to get it working.
 

Thanks,
Yogesh Aggarwal

On Monday, May 21, 2012 11:06:38 PM UTC+5:30, kingsleyh wrote:
Hi, 

If anyone is using Jenkins/Hudson

I have written a cucumber plugin for jenkins to display the cucumber results beautifully:

I have found it very useful personally so thought I would share it with you :)

Thanks

--Kingsley

Cheers,

Matt 

Tim Walker

unread,
May 24, 2012, 6:46:59 PM5/24/12
to cu...@googlegroups.com
Hi Kingsley, 

Question on configuration:

If I run cucumber as:

bundle exec cucumber --format json -o log/cucumber.json -p device_integration features --tags ~@lgtest 2>log/stderr.log

Where the json is getting written to the log directory...

Then the entry in the "Json reports path" is simply "log" (no quotes). Correct? I see the Cucumber Reports link but get a 404 when I click it. I'm running it again like this and will let you know but I wanted to ask for that clarification on configuration. 

Thanks again, 

Tim

-- There are two rules:
 
1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows people to filter messages.
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
 
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

Tim Walker

unread,
May 25, 2012, 10:36:47 AM5/25/12
to cu...@googlegroups.com
Just implemented this and got it working. It is brilliant and has me more excited about Cucumber than ever. Very, very nicely done.  

Tim

-- There are two rules:

Tim Walker

unread,
May 25, 2012, 2:55:57 PM5/25/12
to cu...@googlegroups.com
Question: Durations are 0ms. Is this a known issue? Something I can do something about? 

Thanks again for this beautiful report. 

Tim

worldofchris

unread,
Jun 22, 2012, 10:58:49 AM6/22/12
to cu...@googlegroups.com
>I have written a cucumber plugin for jenkins to display the cucumber results beautifully:

These reports are indeed beautiful.

I've been working on a JSON formatter for cucumber-js - https://github.com/worldofchris/cucumber-js

I did this because we have cucumber-js tests which we need to include in our Jenkins build.

I just ran the output of this through your plugin and it worked like a charm:


Many Many thanks!

Cheers

Chris 

Robert

unread,
Jun 24, 2012, 2:25:32 PM6/24/12
to cu...@googlegroups.com
Kingsley,

First off, the reports you've put together are fantastic!! I've been reviewing the examples listed on the github page, and salivating at how I might somehow re-purpose the plug-in for Bamboo.  Any idea if the plug-in might work with Bamboo?  

Unfortunately, we do not use Jenkins, but it sure would be nice if this could somehow be integrated with Bamboo. 

Vicenzo Naves

unread,
Jun 24, 2012, 3:22:14 PM6/24/12
to cu...@googlegroups.com
Would be nice to have that plugin working for cucumber ruby also =)

--
-- 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



--
Vicenzo Naves
ISTQB CTFL Certified
Analista de Testes
(31) 9996-6915
www.geekcuisine.com.br

R. Tyler Croy

unread,
Jun 24, 2012, 7:43:21 PM6/24/12
to cu...@googlegroups.com

On Sun, 24 Jun 2012, Vicenzo Naves wrote:

> Would be nice to have that plugin working for cucumber ruby also =)

The plugin works as-is with Cucumber Ruby, first line on the README:

"To use with regular cucumber just make sure to run cucumber like this:
cucumber --format json -o cucumber.json"


Cheers
- R. Tyler Croy
--------------------------------------
Code: http://github.com/rtyler
Chatter: http://twitter.com/agentdero
rty...@jabber.org

Rolando Alvarado

unread,
Jun 24, 2012, 9:20:12 PM6/24/12
to cu...@googlegroups.com
This is nice....
--
Sincerely,

Rolando Alvarado
Ruby on Rails Developer

Messengers :
       YM     : roland.rose888
       Skype  : roland_bpsyoursite
       AIM    : rorroland
       Gtalk  : rorroland

Emails :
       Yahoo  : roland....@yahoo.com
       Gmail  : rorr...@gmail.com
       Hotmal : roland_bp...@hotmail.com

Yogesh Aggarwal

unread,
Jun 24, 2012, 9:38:18 PM6/24/12
to cu...@googlegroups.com


On Friday, May 25, 2012 2:13:54 AM UTC+5:30, Matthew wrote:
On Wednesday, 23 May 2012 01:50:48 UTC+12, Yogesh Aggarwal wrote:
HI Kingsley,

Thanks for writing the plugin!

I am interested in using this plugin in my current project. I am currently new to jenkins and this plugin. Plugin https://github.com/masterthought/jenkins-cucumber-jvm-reports-plugin-java doesn't list out the detailed steps for using this plugin.

Can you please provide some detailed steps :
You mentioned to install this plugin in jenkins and then restart the jenkins. But how to install this plugin in jenkins after downloading it?


>> HI Kingsley,

Thanks a lot!. It worked beautifully.
One question: how can we embed screenshot in this results?

Thanks!
Yogesh Aggarwal

Alan Parkinson

unread,
Jun 25, 2012, 6:00:18 AM6/25/12
to cu...@googlegroups.com
Hi Robert,

I'm putting together a Bamboo plugin for a few people. It should be available in the Atlassian Plugin exchange in the next two weeks.

Cheers,

Alan

Oscar Rieken

unread,
Jun 25, 2012, 11:45:03 AM6/25/12
to cu...@googlegroups.com
This plugin works for cucumber ruby its all a matter of creating the .json report. It is a plugin for jenkins so what actually creates the report doesnt matter as long as the json is properly formatted by cucumber

Robert

unread,
Jun 25, 2012, 6:22:28 PM6/25/12
to cu...@googlegroups.com


On Monday, June 25, 2012 3:00:18 AM UTC-7, Alan Parkinson wrote:


On 24 June 2012 19:25, Robert <rest...@gmail.com> wrote:


On Monday, May 21, 2012 10:36:38 AM UTC-7, kingsleyh wrote:
Hi, 

If anyone is using Jenkins/Hudson

I have written a cucumber plugin for jenkins to display the cucumber results beautifully:

I have found it very useful personally so thought I would share it with you :)

Thanks

--Kingsley

Kingsley,

First off, the reports you've put together are fantastic!! I've been reviewing the examples listed on the github page, and salivating at how I might somehow re-purpose the plug-in for Bamboo.  Any idea if the plug-in might work with Bamboo?  

Unfortunately, we do not use Jenkins, but it sure would be nice if this could somehow be integrated with Bamboo. 

Hi Robert,

I'm putting together a Bamboo plugin for a few people. It should be available in the Atlassian Plugin exchange in the next two weeks.

Cheers,

Alan

Alan,

Excellent!!  Will you be announcing its release within this group?  I tend to monitor the group periodically.
 

--
-- 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+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en

panda

unread,
Jun 26, 2012, 12:52:04 AM6/26/12
to cu...@googlegroups.com
yes, its a very good effort.
I was trying to use it in a project jenkins.
I have a question "Do we need to generate the json in some particular directory or folder?".
I am asking this because it shows an error like "could not find the json file".
I am currently generating the json report in target folder within my cucumber jvm project.
Please tell me if i need to modify some settings.


On Monday, May 21, 2012 11:06:38 PM UTC+5:30, kingsleyh wrote:

kingsleyh

unread,
Jul 14, 2012, 2:43:25 PM7/14/12
to cu...@googlegroups.com
Yes I can probably add that - feel free to raise requests As GitHub issues. Also I recently split out the reporting from the plugin so it can be used standalone - one such use it in the maven mojo which runs the report on he command line.

kingsleyh

unread,
Jul 14, 2012, 2:44:45 PM7/14/12
to cu...@googlegroups.com
It's possible - I have split out the reporting into a standalone project so you could use that - check out the GitHub masterthought projects to see

Robert

unread,
Jul 15, 2012, 3:03:42 AM7/15/12
to cu...@googlegroups.com


On Saturday, July 14, 2012 11:43:25 AM UTC-7, kingsleyh wrote:
Yes I can probably add that - feel free to raise requests As GitHub issues. Also I recently split out the reporting from the plugin so it can be used standalone - one such use it in the maven mojo which runs the report on he command line.

Kinsleyh,

Above you state, "split out the reporting from the plugin so it can be used standalone".  Could you expand on that statement?  Would I be able to add your 'standalone' version to our pom.xml file and then somehow run Cucumber-JVM using Maven like so

$ mvn clean integration-test 

and a report would be published -- similar to those shown at https://github.com/masterthought/jenkins-cucumber-jvm-reports-plugin-java#use ?

Rex Hoffman

unread,
Jul 15, 2012, 7:10:19 PM7/15/12
to cu...@googlegroups.com
I already tried it:

Just attempted to use the maven plugin after forking/building it.   Plugin/Reporter seem to not like the cucumber-jvm json format.

I've an example app (included as a tar.gz) and can post it as a bug, but I suspect this is the result of cucumber-jvm's json formatter not appending results until the first failing/last step (on a success)....  so seems to be more of a bug for cucumber-jvm.  Not sure where it should go.... what the structure of the json should be..... ah I do miss the days of schemas....

I can bake a test in to the maven plugin project (using maven's invoker test support), but again I don't think this is your bug.   However since you should have that kind of test anyway, I will probably get to it today.

I'm going to post several feature enhancements and take a stab at them as well.

Things like, break on too many pending exceptions, scanning for multiple files, Ignoring failures on tag (combinations)   so that if a scenario targets multiple apps it can still be strict on one app while being lax on another.   Think the 4 tags @Desktop @Mobile @Mobile_Unstable @Desktop_Unstable....  a scenario could be both Mobile/Desktop but only behaving in an unstable way on Desktop.

Rex

Rex Hoffman

unread,
Jul 15, 2012, 7:11:04 PM7/15/12
to cu...@googlegroups.com
here's that file...  sigh.
example.tar.gz

Robert

unread,
Jul 15, 2012, 11:08:24 PM7/15/12
to cu...@googlegroups.com


On Sunday, July 15, 2012 4:10:19 PM UTC-7, Rex Hoffman wrote:
I already tried it:

Just attempted to use the maven plugin after forking/building it.   Plugin/Reporter seem to not like the cucumber-jvm json format.

I've an example app (included as a tar.gz) and can post it as a bug, but I suspect this is the result of cucumber-jvm's json formatter not appending results until the first failing/last step (on a success)....  so seems to be more of a bug for cucumber-jvm.  Not sure where it should go.... what the structure of the json should be..... ah I do miss the days of schemas....

I can bake a test in to the maven plugin project (using maven's invoker test support), but again I don't think this is your bug.   However since you should have that kind of test anyway, I will probably get to it today.

I'm going to post several feature enhancements and take a stab at them as well.

Things like, break on too many pending exceptions, scanning for multiple files, Ignoring failures on tag (combinations)   so that if a scenario targets multiple apps it can still be strict on one app while being lax on another.   Think the 4 tags @Desktop @Mobile @Mobile_Unstable @Desktop_Unstable....  a scenario could be both Mobile/Desktop but only behaving in an unstable way on Desktop.

Rex

I thought I'd share some of my experiences .....

I've had some success with the standalone version of cucumber-reporting[1].  I was able to successfully add the following dependency to my pom.xml file


               <dependency>
                        <groupId>net.masterthought</groupId>
                        <artifactId>cucumber-reporting</artifactId>
                        <version>0.0.17</version>
                </dependency>

and install the dependency using a mvn clean install on my project.  I also added the Maven mojo [2] to my POM file.  I did this by cloning the github repo (https://github.com/masterthought/maven-cucumber-reporting-mojo.git). I then attempted to do a mvn clean install on the MOJO.  Unfortunately, I ran into a bit of trouble ... while running mvn clean install against the MOJO, it failed since the maven-cucumber-reporting's POM file contains a reference to the cucumber-reporting dependency, version 0.0.14-SNAPSHOT, instead of version 0.0.17.


       <dependency>
            <groupId>net.masterthought</groupId>
            <artifactId>cucumber-reporting</artifactId>
            <version>0.0.14-SNAPSHOT</version>
        </dependency>


After altering the version within the POM file to 0.0.17, a mvn clean install completed successfully.  Once I had both the cucumber-reporting dependency installed and the MOJO installed, I was able to successfully execute the following from the command line against my project to generate the necessary cucumber reports

$ mvn clean verify -Dcucumber.options="--format pretty --format json:target/cucumber.json --tags @drag_n_drop --glue classpath:org.stag.hello src/test/resources/features"

I should note, however, that the resulting output from the command line and the report generated produced WARNINGs for many of the defined steps, even though the scenario passed.  Here's a snippet of the output

[INFO] --- maven-cucumber-reporting:0.0.1:generate (execution) @ simple-cucumber-jvm ---
About to generate
[WARNING] Line 13 : Step is missing Result: Given  : 2 elements exist on a page
[WARNING] Line 14 : Step is missing Result: When  : I drag one element onto the other
[WARNING] Line 13 : Step is missing Result: Given  : 2 elements exist on a page
[WARNING] Line 14 : Step is missing Result: When  : I drag one element onto the other

So, it would appear that something within the reporting engine, or the JSON generated by cucumber is a bit off the mark.  I've also attached a screen shot ("Cucumber_Report_Result-Missing_message.png") of the same test generated by the cucumber reporting plugin 



Cucumber_Report_Result-Missing_message.png

panda

unread,
Sep 25, 2012, 1:22:31 PM9/25/12
to cu...@googlegroups.com
It would be a great help if you can tell me "How to turn off the default flash charts and use the javascript charts?".

Thanks in advance,

Usman Hussain

unread,
Nov 19, 2012, 5:12:08 AM11/19/12
to cu...@googlegroups.com

Hey,

I have the cucumber plugin for bamboo installed and am running cucumber-jvm tests. When the test run finishes the build goes green. But when I click on the cucumber tab all the fields are empty.

I have added the JSON reporter to my RunCukesTest.java file:

@Cucumber.Options(tags = {"~@wip", "~@manual"}, format = {"pretty", "html:src/target/cucumber/html/cucumber-html-report", "json:src/target/cucumber/cucumber.json"})

The file can be seen (cucumber.json) on the test repository. But I am struggling to actually get the results displayed in the cucumber tab in Bamboo.

Where am I going wrong? Is there anything else I need to set up in order for Bamboo to locate the JSON file being created? I have specified the path when setting up as: **/target/cucumber/cucumber.json

the actual location of the file is tests/target/cucumber/cucumber.json

any help would be greatly appreciated.

hari haran

unread,
Nov 19, 2012, 11:25:16 PM11/19/12
to cu...@googlegroups.com
Hi,

Is there a way to send cucumber-jenkins report as an email.

Vinod Kumar Mohan

unread,
Feb 6, 2013, 10:52:36 AM2/6/13
to cu...@googlegroups.com
Hi Kingsley,

Firstly, Many Thanks for the Jenkins Plugin. It is a very usefull for our Cucumber JVM framework. I need your assistance in fixing an issue with the Jenkins Build. I have configured the plugin and created a freestyle project in Jenkins as per your instructions. I am getting the reports generated in a very pretty way, How ever i guess, i have landed on a possible defect / limitation of the using the mvn in jenkins 

Ok, here is what i am doing,

1 i basically have three different tests  @WEB, @ API & @SalesforceAPP

2. I am using the following mvn command to specify the Tests, browser and environment 

mvn clean test -Dcucumber.options="--tags @WEB" -Denv=SI -Dbrowser=firefox

in the above command -Dcucumber.options="--tags @WEB" will over ride what ever is in the RunCukesTest.JAVA in cucumber jvm framework

3. The Problem is when u are over riding the tags in RunCukesTest.JAVA , Jenkins actually is not overriding , it is running both the tags, the tags that we specify plus the tag which already existed in RunCukesTest.JAVA.

For Example: if you RunCukesTest.Java  like the one below has a default tag as @Suite and if we are over riding @Suite with @WEB, 
Jenkins is running both @WEB and @Suite tests one batch after the other

Any help on this will be highly appreciated

Once again Thanks a lot for your effort in the Plugin 

Regards

Vinod Kumar M 


________________________________________________________________________________________________________________________________________

Robert

unread,
Feb 20, 2013, 5:41:05 PM2/20/13
to cu...@googlegroups.com
Steve,


On Tuesday, February 19, 2013 5:08:14 AM UTC-8, Steve Young wrote:
Hi, 

I am very close to getting this working but falling down on the last step where it attempts to generate the Cucumber report from the json results, with these errors:

[CucumberReportPublisher] there were no json results found in: C:\Program Files (x86)\Jenkins\jobs\Maven Test 2\workspace\target
[CucumberReportPublisher] there were no json results found in: C:\Program Files (x86)\Jenkins\jobs\Maven Test 2\builds\2013-02-19_12-15-47\cucumber-html-reports

The cucumber.json report is being generated in the IDE local directory in the \target folder each time a build is run, I have JUnit running and Jenkins can access C:\Program Files (x86) etc path fine in previous Archiving steps in the Build Output.

I am running a Windows pre-step of:
mvn clean test -Dcucumber.options="--tags @FaProgsALL" -Dbrowser=firefox

My only config in the Publish Cucumber report is 
Json Reports Path        \target


I have hunted the net for a solution but now I am well and truly stuck, it seems like its not running the 
[CucumberReportPublisher] copying json to reports directory: 
function

Can anyone help or advise?

Cheers, Steve
(Win 7, Intelli JIDEA12, WebDriver, Cucumber-JVM)


You may also want to log an issue at https://github.com/masterthought/jenkins-cucumber-jvm-reports-plugin-java.  I've found that directly contacting the author of the jenkins plugin seems to provide more meaningful responses.


 


On Monday, 21 May 2012 18:36:38 UTC+1, kingsleyh wrote:
Hi, 

If anyone is using Jenkins/Hudson

I have written a cucumber plugin for jenkins to display the cucumber results beautifully:

I have found it very useful personally so thought I would share it with you :)

Thanks

--Kingsley

Message has been deleted

Prashanth T.V

unread,
May 12, 2013, 12:58:31 AM5/12/13
to cu...@googlegroups.com
Hi All,

I have been using Cucumber-JVM and running the tests through Maven.
I have 2 tests in my eclipse project and when I ran these tests though maven it gets executed successfully.
 But, when I see my HTML report, it displays details of only one test case.

Also, the cucumber.json file which gets generated has details of only one test case(though I ran 2 test cases), Can you please help me in this regard.

Also, below is the code extract of my runnertest.java file

package com.cucumber.timescity.Incorrectlogindetails;

import org.junit.runner.RunWith;

import cucumber.api.java.it.Date;
import cucumber.api.junit.Cucumber;

// runner class


@RunWith(Cucumber.class)
@Cucumber.Options(format = {"html:target/cucumber", "json:target/cucumber.json" })

public class RunCukesTest {
}

Please let me know if you require any other information.
I have attached the pom.xml which I have been using.

Thanks,
Regards
Prashanth
pom.xml

Paolo Ambrosio

unread,
May 12, 2013, 2:51:53 AM5/12/13
to cu...@googlegroups.com
On Sun, May 12, 2013 at 5:58 AM, Prashanth T.V <prash...@gmail.com> wrote:

> I have been using Cucumber-JVM and running the tests through Maven. [...]

Hi Prashanth,

As this thread was about Jenkins, you broke not one, not two but all
three rules of this group. Please read them at the bottom of any
message (this one included).


Paolo

Senthil

unread,
May 14, 2013, 9:45:09 PM5/14/13
to cu...@googlegroups.com
 
Hi Prasanth,
 
Are you having 2 test class annotated with Cucumber runner? In that case the second one overwrites first created report. You supposed to have only one test class, but can have multiple feature files and/or multiple scenarios.
 
Cheers
Senthil

Ramu Vairavan

unread,
Aug 1, 2013, 4:20:54 AM8/1/13
to cu...@googlegroups.com
Steve Young <nocturnalsteve@...> writes:

>
>
> Im sure its not a bug as other people have the reports working fine, I
think its more of a config issue
>
> Im not seeing a [CucumberReportPublisher] copying json to reports
directory:
>
> in the build output so not confident that the cucumber.json is being
generated, anyone have an idea on why this may happen?
>
>
> SteveOn Monday, 21 May 2012 18:36:38 UTC+1, kingsleyh wrote:Hi, 
> If anyone is using Jenkins/Hudson
>
> I have written a cucumber plugin for jenkins to display the cucumber
results beautifully:
>
> https://github.com/masterthought/jenkins-cucumber-jvm-reports-plugin-java
>
>
> I have found it very useful personally so thought I would share it with
you :)
>
> Thanks
>
> --Kingsley
>
>
>
>
>


Hi Steve -
Did you identify the root cause of the issue? If so, please let me know
the steps that you took to get it fixed. I am also having the same issue
now. It is not copying the json reports from the workspace\target
directory to jenkins directory and complains that no reports are found.

Thanks
Ramu.

surya

unread,
Aug 16, 2013, 2:26:06 PM8/16/13
to cu...@googlegroups.com
Hey Chris,

Awesome to hear that you implemented JSON formatter for cucumber-js which i have been struggling. Could you please give me more details around in generating Json output for all tests and generating HTML reports using Jenkins plug in.

Thanks
Surya

On Friday, June 22, 2012 9:58:49 AM UTC-5, worldofchris wrote:
>I have written a cucumber plugin for jenkins to display the cucumber results beautifully:

These reports are indeed beautiful.

I've been working on a JSON formatter for cucumber-js - https://github.com/worldofchris/cucumber-js

I did this because we have cucumber-js tests which we need to include in our Jenkins build.

I just ran the output of this through your plugin and it worked like a charm:


Many Many thanks!

Cheers

Chris 

aslak hellesoy

unread,
Aug 16, 2013, 3:27:09 PM8/16/13
to Cucumber Users
On Fri, Aug 16, 2013 at 7:26 PM, surya <balakri...@gmail.com> wrote:
Hey Chris,

Awesome to hear that you implemented JSON formatter for cucumber-js which i have been struggling.

Cucumber-Js has had a built-in JSON formatter since 0.2.20: https://github.com/cucumber/cucumber-js/blob/master/History.md#v0220
Are you saying you can't get it to work?

Aslak

Could you please give me more details around in generating Json output for all tests and generating HTML reports using Jenkins plug in.

Thanks
Surya

On Friday, June 22, 2012 9:58:49 AM UTC-5, worldofchris wrote:
>I have written a cucumber plugin for jenkins to display the cucumber results beautifully:

These reports are indeed beautiful.

I've been working on a JSON formatter for cucumber-js - https://github.com/worldofchris/cucumber-js

I did this because we have cucumber-js tests which we need to include in our Jenkins build.

I just ran the output of this through your plugin and it worked like a charm:


Many Many thanks!

Cheers

Chris 

--
-- 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.

surya

unread,
Aug 19, 2013, 9:37:04 AM8/19/13
to cu...@googlegroups.com
Thanks Aslak for looking into this. Here is my problem

1. I have used "-f json" to generate the Json output file at end of the test. It is writing only to CLI the json output and doesn't have any option output to a file.
2. So taking Json output from CLI is making very difficult as it have larger number of tests and also leads to json format issues which requires manual works to correct spaces and line breaks etc.

So do we have any solution for it?

Thanks
Surya

Julien Biezemans

unread,
Aug 20, 2013, 4:15:48 AM8/20/13
to cu...@googlegroups.com
On Mon, Aug 19, 2013 at 3:37 PM, surya <balakri...@gmail.com> wrote:
Thanks Aslak for looking into this. Here is my problem

1. I have used "-f json" to generate the Json output file at end of the test. It is writing only to CLI the json output and doesn't have any option output to a file.
2. So taking Json output from CLI is making very difficult as it have larger number of tests and also leads to json format issues which requires manual works to correct spaces and line breaks etc.

So do we have any solution for it?


What are the exact format issues you get? Spaces and line breaks should be all good.

Running the following should output the results to a file:

    cucumber.js -f json > run_results.json



--
Julien.

Bitmessage: BM-2D9dmBtB87TmcDBXhGFVXyrMrMPpL1ycgT

Farooq Yousuf

unread,
Oct 25, 2013, 5:07:22 PM10/25/13
to cu...@googlegroups.com
I'm trying to use the standalone version. My setup:

I have a repository with my cucumber features and step definitions using Ruby.

So I'm not sure how to generate the HTML reports? Can someone please provide detailed steps?

Thanks
Farooq

Paolo Ambrosio

unread,
Oct 26, 2013, 3:24:32 AM10/26/13
to cu...@googlegroups.com


On 26 Oct 2013 02:24, "Farooq Yousuf" <farooq...@gmail.com> wrote:

> I'm trying to use the standalone version. My setup:
>
> I have a repository with my cucumber features and step definitions using Ruby.
>
> So I'm not sure how to generate the HTML reports? Can someone please provide detailed steps?

Please read the group rules at the end of every email and on the group main page: do not top post and start a new thread for a new question, especially if the original post is 4 months old! A few more details about your setup would also help getting better answers.

Paolo

> Thanks
> Farooq
>
> On Saturday, July 14, 2012 2:44:45 PM UTC-4, kingsleyh wrote:
>>
>> It's possible - I have split out the reporting into a standalone project so you could use that - check out the GitHub masterthought projects to see
>

sneha ranawade

unread,
Feb 7, 2014, 2:37:45 AM2/7/14
to cu...@googlegroups.com
Hi ,
i have to devalop a plugin for build staus analyasis.
but i dont know  anything regarding the plugin devalopment.
can you suggest anything , that would be helpful in doing so ?


On Monday, May 21, 2012 11:06:38 PM UTC+5:30, kingsleyh wrote:
Hi, 

If anyone is using Jenkins/Hudson

I have written a cucumber plugin for jenkins to display the cucumber results beautifully:

Krishna Gundala

unread,
Feb 7, 2014, 4:07:34 AM2/7/14
to cu...@googlegroups.com
On Fri, Feb 7, 2014 at 1:07 PM, sneha ranawade <sneha26...@gmail.com> wrote:
Hi ,
i have to devalop a plugin for build staus analyasis.
   
    Q. What to meant by Build status? any thing related to CI?
           
but i dont know  anything regarding the plugin devalopment.
    
     http://codex.wordpress.org/Writing_a_Plugin  hope this link can explain you about developing a plugin.
    And more it depends on the technologies what we are using.
    Even the following link form kingsleyh describes more in terms of development
    
can you suggest anything , that would be helpful in doing so ?

On Monday, May 21, 2012 11:06:38 PM UTC+5:30, kingsleyh wrote:
Hi, 

If anyone is using Jenkins/Hudson

I have written a cucumber plugin for jenkins to display the cucumber results beautifully:

I have found it very useful personally so thought I would share it with you :)

Thanks

--Kingsley
 

Ragavan Ambighananthan

unread,
Feb 13, 2014, 7:21:01 AM2/13/14
to cu...@googlegroups.com

Thanks for this plugin.

We are using: ruby/cucumber, generating report as mentioned in the readme, path is configured correctly as well.
But when i click the report, i get the following error:
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2

My json file starts like this
[{"keyword":"Feature","name":"


am i missing anything ?

- Ragavan
On Monday, June 25, 2012 12:43:21 AM UTC+1, R Tyler Croy wrote:

On Sun, 24 Jun 2012, Vicenzo Naves wrote:

> Would be nice to have that plugin working for cucumber ruby also =)

The plugin works as-is with Cucumber Ruby, first line on the README:

    "To use with regular cucumber just make sure to run cucumber like this:
    cucumber --format json -o cucumber.json"


Cheers
- R. Tyler Croy
--------------------------------------
    Code: http://github.com/rtyler
 Chatter: http://twitter.com/agentdero
          rty...@jabber.org

Moshe Suberri

unread,
Jan 8, 2015, 1:56:33 AM1/8/15
to cu...@googlegroups.com
Hi,
Thank you for your work.

I am using Json to report test results. 
What should be the Json format so cucumber can publish a report?


M

manish gupta

unread,
Apr 8, 2015, 5:01:23 AM4/8/15
to cu...@googlegroups.com
Hi Kingsley,

i have query 
- Is it possible, i can able to call this deployed plugin on jenkin, from some other server with java code, i mean if i have some server from there i place some java code and i want to hit the plugin to get some response.is it possible. 
Reply all
Reply to author
Forward
0 new messages