java - Getting error :Error occured while generating Cucumber usage report -


i trying user cucumber advance reporting getting error :

exception in thread "main" org.apache.maven.reporting.mavenreportexception: error occured while generating cucumber usage report     @ com.github.mkolisnyk.cucumber.reporting.cucumberusagereporting.executereport(cucumberusagereporting.java:385)     @ support.testhi.main(testhi.java:36) caused by: java.lang.nullpointerexception     @ com.github.mkolisnyk.cucumber.reporting.types.usage.cucumberstepsource.<init>(cucumberstepsource.java:35)     @ com.github.mkolisnyk.cucumber.reporting.cucumberusagereporting.getstepsources(cucumberusagereporting.java:345)     @ com.github.mkolisnyk.cucumber.reporting.cucumberusagereporting.executereport(cucumberusagereporting.java:366)     ... 1 more 

the code used :

cucumberusagereporting report = new cucumberusagereporting();     report.setoutputdirectory("target");     report.setjsonusagefile("./src/test/cucumber-usage.json");     report.executereport(); 

how can resolve error?

error resolved after updating version of cucumber-reporting library in pom.xml


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -