Comments (3)
Hi - thanks for raising this - I will fix this also in the next release
On 18 Apr 2013, at 13:27, fdegrigny [email protected] wrote:
If there is a "status":"pending" in the JSON file, yhis make the parser crash with this following NPE (and the report generation fails) :
java.lang.NullPointerException
at net.masterthought.cucumber.json.Step$predicates$1.matches(Step.java:171)
at net.masterthought.cucumber.json.Step$predicates$1.matches(Step.java:168)
at com.googlecode.totallylazy.iterators.FilterIterator.getNext(FilterIterator.java:20)
at com.googlecode.totallylazy.iterators.StatefulIterator.hasNext(StatefulIterator.java:23)
at com.googlecode.totallylazy.Iterators.size(Iterators.java:347)
at com.googlecode.totallylazy.Sequences.size(Sequences.java:384)
at com.googlecode.totallylazy.Sequence.size(Sequence.java:245)
at net.masterthought.cucumber.json.Element.getStatus(Element.java:36)
at net.masterthought.cucumber.ReportInformation.processFeatures(ReportInformation.java:225)
at net.masterthought.cucumber.ReportInformation.(ReportInformation.java:41)
at net.masterthought.cucumber.ReportBuilder.(ReportBuilder.java:39)
at net.masterthought.cucumber.CucumberReportGeneratorMojo.execute(CucumberReportGeneratorMojo.java:61)
... 21 moreThe expected behavior is to deal this "pending" status like the "undefined" one.
(If we replace manually all the "prending" status by "undefined" ones : the generation is OK)Regards.
—
Reply to this email directly or view it on GitHub.
from cucumber-reporting.
You're welcome.
Waiting the next release, there is a workaround using AntRun Maven goal :
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>filter-json-status</id>
<phase>post-integration-test</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<!-- filter the JSON report : hack for a maven-cucumber-reporting bug ! -->
<!-- (Its parser doesn't recognize the 'pending' status yet) -->
<replace file="${project.build.directory}/cucumber.json">
<replacetoken><![CDATA["status":"pending"]]></replacetoken>
<replacevalue><![CDATA["status":"undefined"]]></replacevalue>
</replace>
</target>
</configuration>
</execution>
</executions>
</plugin>
from cucumber-reporting.
fixed in pending release
from cucumber-reporting.
Related Issues (20)
- Not able to see cucumber-html reporting after execution the tests HOT 5
- Build Execution Date on horizontal axis HOT 3
- Error: Action failed with "The process '/usr/bin/git' failed with exit code 1" HOT 1
- Cucumber fails build report with 0 tests HOT 1
- Qualifier missing from the report-feature html HOT 1
- Not able to log in cucumber-reporting HOT 1
- Failed to parse plugin descriptor for net.masterthought:cucumber-reporting:5.7.6 HOT 1
- Generate Cucumber Report with Tags Excluded HOT 1
- Reporting url changed HOT 3
- Maven cucumber reporting stopped working on update to Selenium 4.14.1 from Selenium 4.13.0 HOT 2
- How to add execution duration at scenario level in cucumber reports HOT 3
- JSON File Limit HOT 1
- Cucumber html report screen is blur and couldn't able to access the report HOT 1
- Update Qualifiers in reports when cucumber json output has information on OS and devices HOT 9
- Karate framework cannot deserialize cucumber json.feature file
- How to customize json report generated by cucumber to feed it to this cucumber-reporting tool HOT 3
- How to merge 2 json files into one html report HOT 2
- Any Options to Disabled of Hide Animations on Dashboard Screen ?
- LICENSE error reported by Snyk scan HOT 2
- Is it possible to not create html file for each tag on the project? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cucumber-reporting.