Giter Club home page Giter Club logo

Comments (11)

damianszczepanik avatar damianszczepanik commented on August 28, 2024

What is the sense of generating report from empty json?

from cucumber-reports-plugin.

calebmfreed avatar calebmfreed commented on August 28, 2024

Having 10 report files means if one is empty there's still plenty to generate reports from, and the empty one can be ignored and no report generated for it.

from cucumber-reports-plugin.

damianszczepanik avatar damianszczepanik commented on August 28, 2024

Makes sense

from cucumber-reports-plugin.

damianszczepanik avatar damianszczepanik commented on August 28, 2024

By empty json I should mean empty file or empty array of the features like
[]

Empty file could be resulted as error which should not be treated as normal correct result and empty array is currently improved in #366

from cucumber-reports-plugin.

damianszczepanik avatar damianszczepanik commented on August 28, 2024

@calebmfreed can you precise if you have empty file or empty array of the feature? Can you attach JSON file

from cucumber-reports-plugin.

calebmfreed avatar calebmfreed commented on August 28, 2024

I'll try to create an example and send it over.

from cucumber-reports-plugin.

damianszczepanik avatar damianszczepanik commented on August 28, 2024

Fixed, should work with next release

from cucumber-reports-plugin.

t-dias avatar t-dias commented on August 28, 2024

I'm having the same problem, using cucumber-reports-plugin 3.20.0.
My tests are runned automatically and when none has executed, an empty - [ ] - report file is created.
The Json is not parsed and is returned an error instead of an empty report:

net.masterthought.cucumber.ValidationException: Passed files have no features! at net.masterthought.cucumber.ReportParser.parseJsonFiles(ReportParser.java:69) ...

How can I fix this?

from cucumber-reports-plugin.

damianszczepanik avatar damianszczepanik commented on August 28, 2024

Show me JSON file

from cucumber-reports-plugin.

t-dias avatar t-dias commented on August 28, 2024

@damianszczepanik its a JSON file with an empty array
[]

from cucumber-reports-plugin.

damianszczepanik avatar damianszczepanik commented on August 28, 2024

That's because of that
https://github.com/damianszczepanik/cucumber-reporting/blob/master/src/main/java/net/masterthought/cucumber/ReportParser.java#L67

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.