2013-06-27 4 views
1

При запуске тестов на селен через jenkins отчет о уверенности не создается.Maven surefire report Jenkins

[htmlpublisher] Archiving HTML reports... 
[htmlpublisher] Archiving at BUILD level /jenkins/workspace/tester/target/surefire- reports/html to /var/lib/jenkins/jobs/tester/builds/2013-06-27_12-59- 03/htmlreports/HTML_Report 
ERROR: Specified HTML directory '/jenkins/workspace/tester/target/surefire-reports/html' does not exist. 
Build step 'Publish HTML reports' changed build result to FAILURE 

Любые идеи о том, что может быть причиной этого?

Update: Вот область в моей ПОМ, где указываю безошибочный отчет

<plugin> 
    <groupId>org.apache.maven.plugins</groupId> 
    <artifactId>maven-surefire-plugin</artifactId> 
    <version>2.9</version> 
    <configuration> 
     <skip>false</skip> 
     <suiteXmlFiles> 
      <suiteXmlFile> 
       src/test/resources/testsuites/${suite}.xml 
      </suiteXmlFile> 
     </suiteXmlFiles> 
     <properties> 
      <property> 
       <name>usedefaultlisteners</name> 
       <value>false</value> 
      </property> 
      <property> 
       <name>listener</name> 
       <value>     org.uncommons.reportng.HTMLReporter,org.uncommons.reportng.JUnitXMLReporter,com.testing.qa.zz.framework.web.utilities.TestMethodListener,com.testing.qa.zz.framework.web.utilities.TestStatusListener,com.testing.qa.zz.framework.web.utilities.TestSuiteListener 
       </value> 
      </property> 
     </properties> 
     <systemPropertyVariables> 
      <org.uncommons.reportng.escape-output>false 
      </org.uncommons.reportng.escape-output> 
     </systemPropertyVariables> 
    </configuration> 
</plugin> 
+0

Можете ли вы предоставить конфигурацию pom.xml и еще немного до и после строки входа (если Соответствующий)? – noahlz

+0

См. Выше, когда я добавил его – jrock2004

ответ

0

Вы можете попробовать с большинством основного использования POM для безошибочного? Он должен работать из коробки.

<plugin> 
    <groupId>org.apache.maven.plugins</groupId> 
     <artifactId>maven-surefire-report-plugin</artifactId> 
     <version>2.5</version> 
     <configuration> 
     <outputName>Any fancy name</outputName> 
     <testFailureIgnore>true</testFailureIgnore> 
     </configuration> 
    </plugin> 

Если он работает. Пожалуйста, укажите случай использования

0

Включить плагин отчетности в вас POM

<reporting> 
     <plugins> 
      <plugin> 
       <groupId>org.apache.maven.plugins</groupId> 
       <artifactId>maven-surefire-report-plugin</artifactId> 
       <version>2.19.1</version> 
       <reportSets> 
        <reportSet> 
         <reports> 
          <report>report-only</report> 
         </reports> 
        </reportSet> 
       </reportSets> 
      </plugin> 
     </plugins> 
    </reporting> 

Execute Maven цели

test -Dmaven.test.failure.ignore=true site