PLease kindly help! I would greatly appreciate it.
My maven project build is success with warning as show below. Compaings, it is about to generate cucumber report and Unexpected error happened
net.masterthought.cucumber.ValidationException: No JSON report file was found!
Please also refer below console log report
enter image description here
Here is my pom.xml plugins
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.12.4</version>
<configuration>
<!-- <mainClass>cucumber.api.cli</mainClass>-->
<systemPropertyVariables>
<!--suppress UnresolvedMavenProperty -->
<environment>${env.USR}</environment>
</systemPropertyVariables>
<properties>
<configurationParameters>
cucumber.junit-platform.naming.strategy=long
</configurationParameters>
</properties>
<testFailureIgnore>true</testFailureIgnore>
</configuration>
</plugin>
<plugin>
<groupId>net.masterthought</groupId>
<artifactId>maven-cucumber-reporting</artifactId>
<version>5.8.1</version>
<executions>
<execution>
<id>generate-cucumber-reports</id>
<phase>test</phase>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<jsonFiles>
<param>**/*.JSON</param>
</jsonFiles>
<projectName>${project.name}</projectName>
<outputDirectory>${project.build.directory}/cucumber-reports</outputDirectory>
<inputDirectory>${project.build.directory}</inputDirectory>
<mergeFeaturesById>false</mergeFeaturesById>
<mergeFeaturesWithRetest>false</mergeFeaturesWithRetest>
<checkBuildResult>false</checkBuildResult>
<buildNumber> ${project.build.version}+1</buildNumber>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven.compiler.plugin.version}</version>
<configuration>
<source>17</source>
<target>17</target>
</configuration>
</plugin>
</plugins>
New contributor
Laxman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.