[xUnit] No test reports found for the metric 'JUnit' in 'target/site/serenity/SERENITY-JUNIT-*.xml

303 views
Skip to first unread message

Danny Barrientos

unread,
Jun 5, 2017, 5:57:21 PM6/5/17
to Serenity BDD Users Group
The POM.xml is it 

I have two jenkins Job and runs sequentially, The first job if it generates the report but the second job does not generate the report this is the error

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.sura</groupId>
<artifactId>BDDContabilidad</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>BDDContabilidad</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<serenity.version>1.1.42</serenity.version>
<serenity.jbehave.version>1.13.0</serenity.jbehave.version>
<junit.version>4.12</junit.version>
<slf4j.simple.version>1.7.7</slf4j.simple.version>
<assertj.core.version>3.4.0</assertj.core.version>
<lambdaj.version>2.3.3</lambdaj.version>
<jbehave.core.version>4.0.5</jbehave.core.version>
<serenity.maven.plugin.version>1.1.42</serenity.maven.plugin.version>
<maven.surefire.plugin>2.19.1</maven.surefire.plugin>
<maven.failsafe.plugin>2.19.1</maven.failsafe.plugin>
<maven.compiler.plugin>3.2</maven.compiler.plugin>
<maven.compiler.plugin.source>1.7</maven.compiler.plugin.source>
<maven.compiler.plugin.target>1.7</maven.compiler.plugin.target>
<webdriver.driver>chrome</webdriver.driver>
<webdriver.chrome.driver>chromedriver.exe</webdriver.chrome.driver>
</properties>
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>bintray</name>
<url>http://jcenter.bintray.com</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>bintray-plugins</name>
<url>http://jcenter.bintray.com</url>
</pluginRepository>
</pluginRepositories>
<dependencies>
<dependency>
<groupId>net.serenity-bdd</groupId>
<artifactId>serenity-core</artifactId>
<version>${serenity.version}</version>
</dependency>
<dependency>
<groupId>net.serenity-bdd</groupId>
<artifactId>serenity-jbehave</artifactId>
<version>${serenity.jbehave.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>${slf4j.simple.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>net.serenity-bdd</groupId>
<artifactId>serenity-junit</artifactId>
<version>${serenity.version}</version>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>${assertj.core.version}</version>
</dependency>
<dependency>
<groupId>com.googlecode.lambdaj</groupId>
<artifactId>lambdaj</artifactId>
<version>${lambdaj.version}</version>
</dependency>
<dependency>
<groupId>org.jbehave</groupId>
<artifactId>jbehave-core</artifactId>
<version>${jbehave.core.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven.surefire.plugin}</version>
</plugin>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${maven.failsafe.plugin}</version>
<configuration>
<includes>
<include>**/contabilidad/cuenta/*.java</include>
</includes>
<excludes>
</excludes>
<reuseForks>false</reuseForks>
<forkCount>1C</forkCount>
<forkedProcessTimeoutInSeconds>1500</forkedProcessTimeoutInSeconds>
<argLine>-Xmx1024m -XX:MaxPermSize=256m</argLine>
<systemPropertyVariables>
<webdriver.driver>${webdriver.driver}</webdriver.driver>
</systemPropertyVariables>
</configuration>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven.compiler.plugin}</version>
<configuration>
<source>${maven.compiler.plugin.source}</source>
<target>${maven.compiler.plugin.target}</target>
</configuration>
</plugin>
<plugin>
<groupId>net.serenity-bdd.maven.plugins</groupId>
<artifactId>serenity-maven-plugin</artifactId>
<version>${serenity.maven.plugin.version}</version>
<executions>
<execution>
<id>serenity-reports</id>
<phase>post-integration-test</phase>
<goals>
<goal>aggregate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>



I have two jenkins Job and runs sequentially, The first job if it generates the report but the second job does not generate the report this is the error

Generating HTML Story Reports from T:\jenkins-slave-Serenity\workspace\Modulo\Contabilidad\Develop\Contabilidad_Develop-AceptanceTestWorkF\target\site\serenity
Generating HTML Story Reports to T:\jenkins-slave-Serenity\workspace\Modulo\Contabilidad\Develop\Contabilidad_Develop-AceptanceTestWorkF\target\site\serenity
GENERATE CUSTOM REPORTS
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 25:32.212s
[INFO] Finished at: Mon Jun 05 15:04:41 COT 2017
[INFO] Final Memory: 32M/1316M
[INFO] ------------------------------------------------------------------------
[htmlpublisher] Archiving HTML reports...
[htmlpublisher] Archiving at PROJECT level T:\jenkins-slave-Serenity\workspace\Modulo\Contabilidad\Develop\Contabilidad_Develop-AceptanceTestWorkF\target\site\serenity to /var/opt/jenkins/jenkins-app/jobs/Modulo/jobs/Contabilidad/jobs/Develop/jobs/Contabilidad_Develop-AceptanceTestWorkF/htmlreports/Reporte_de_ejecucion_de_pruebas
[xUnit] [INFO] - Starting to record.
[xUnit] [INFO] - Processing JUnit
[xUnit] [INFO] - [JUnit] - No test report file(s) were found with the pattern 'target/site/serenity/SERENITY-JUNIT-*.xml' relative to 'T:\jenkins-slave-Serenity\workspace\Modulo\Contabilidad\Develop\Contabilidad_Develop-AceptanceTestWorkF' for the testing framework 'JUnit'.  Did you enter a pattern relative to the correct directory?  Did you generate the result report(s) for 'JUnit'?
[xUnit] [ERROR] - No test reports found for the metric 'JUnit' with the resolved pattern 'target/site/serenity/SERENITY-JUNIT-*.xml'. Configuration error?.
[xUnit] [INFO] - Failing BUILD.
[xUnit] [INFO] - There are errors when processing test results.
[xUnit] [INFO] - Skipping tests recording.
[xUnit] [INFO] - Stop build.
Build step 'Publish xUnit test result report' changed build result to FAILURE
Started calculate disk usage of build
Finished Calculation of disk usage of build in 0 seconds
Started calculate disk usage of workspace
Finished Calculation of disk usage of workspace in 0 seconds
Notifying upstream projects of job completion
Warning: you have no plugins providing access control for builds, so falling back to legacy behavior of permitting any downstream builds to be triggered
Finished: FAILURE





Reply all
Reply to author
Forward
0 new messages