Cucumber Reporter Bamboo problem displaying results

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.

Kind regards,

Usman Hussain

1 answer

I have just published version 0.6 of the plugin after discovering a bug while investigating your problem. I highly recommend installing the new version and trying to view Cucumber reports using it.
Your configuration for the plugin looks correct to me and the bug was located in the Report UI and could stop reports from being viewed.
There is one simple trick to tell if the plugin collected a JSON report during your build:
  1. Open the build result you are interested in and select the "Metadata" tab.
  2. In the table you should see "CUCUMBER_JSON_REPORT" in the "key" column.

If the "CUCUMBER_JSON_REPORT" key is missing then the plugin did not find your JSON file.

awesome... The plugin does find the JSON file as I can see CUCUMBER_JSON_REPORT appear in the metadata tab. I will give the new version a whirl and let you know how I get on.

Again this is really appreciated the reply and work you have done.

It's worth noting the updated version of this add-on now has better debugging for problems with finding the JSON file

Hi,

Have you managed to resolve this? 

Im having a similar issue where the plugin is failing.

In the metadata, I see the key : CUCUMBER_JSON_REPORT but the value is null.

 

The error in the log is : 

Could not execute task 'BDD-INsights' no Plugin with key 'com.hindsighttesting.behave.cucumber-bamboo-plugin:cucumberReportTask' is installed.

 

Now I have installed the plugin via the marketplace, but it appears i am missing something,

Can you help me identify what that is, in this vague description of an issue by any chance?

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

365 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you