2

ジェンキンス経由でセレン テストを実行すると、確実なレポートが作成されません。

[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

これを引き起こしている可能性のあるアイデアはありますか?

更新:これは、確実なレポートを指定する私のpomの領域です

<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>
4

2 に答える 2

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>

Maven ゴールを実行する

test -Dmaven.test.failure.ignore=true site
于 2016-02-19T18:19:21.793 に答える
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>

それが機能している場合。ユースケースを指定してください

于 2013-09-19T09:18:17.677 に答える