Giter Club home page Giter Club logo

Comments (6)

damianszczepanik avatar damianszczepanik commented on July 24, 2024

What language do you use to generate json report?

from cucumber-reports-plugin.

javauser05 avatar javauser05 commented on July 24, 2024

I am using JAVA language.
I am running my testcases through ANT.

In ANT, I am running my feature file and generating cucumber.json , junit and html reports in below way.

    <java classname="cucumber.api.cli.Main" fork="true" failonerror="false" resultproperty="cucumber.exitstatus">
        <classpath refid="classpath"/>
        <arg value="--plugin"/>
        <!-- creates our junit report -->
        <arg value="junit:${report.dir}/cucumber-junit-report/allcukes.xml"/>
        <arg value="--plugin"/>
        <arg value="pretty"/>
        <arg value="--plugin"/>
        <!-- cucumber html report -->
        <arg value="html:${report.dir}/cucumber-html-report"/>
        <arg value="--plugin"/>
        <!-- cucumber json report -->
        <arg value="json:${report.dir}/cucumber.json"/>
        <arg value="--glue"/>
        <!-- folder cucumber definitions are there -->
        <arg value="${stepdefs}"/>
        <arg value="--glue"/>
        <!-- folder cucumber definitions are there -->
        <arg value="${scenariodata}"/>
        <!-- folder where the feature filesare kept -->
        <arg value="${featureFileToExecute}"/>
        <arg value="--tags"/>
        <arg value="${tagstorun}"/>     
    </java>

Attaching complete report folder for more information.
reports.zip

from cucumber-reports-plugin.

damianszczepanik avatar damianszczepanik commented on July 24, 2024

Works fine with the most recent version, so upgrade and try again

from cucumber-reports-plugin.

javauser05 avatar javauser05 commented on July 24, 2024

My Jenkins server version is 2.7.2.
Current Cucumber Reports Plugin is 2.5.1.

I can't see latest available version for this plugin.So not able to update plugin.
Is there any dependency on Jenkins server version?

from cucumber-reports-plugin.

damianszczepanik avatar damianszczepanik commented on July 24, 2024

https://github.com/jenkinsci/cucumber-reports-plugin/releases
http://repo.jenkins-ci.org/releases/net/masterthought/jenkins/cucumber-reports/

from cucumber-reports-plugin.

javauser05 avatar javauser05 commented on July 24, 2024

My bad.My Jenkins server is on Version 1.609.2.
And latest “Cucumber-jvm reports” plugin require core dependencies as 1.625.3.

It seems I had to first update my server.Will update my server and check it.
Thanks all for your help.

from cucumber-reports-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.