【问题标题】:SoapUI/maven: No HTML reportSoapUI/maven:没有 HTML 报告
【发布时间】:2015-08-11 00:31:16
【问题描述】:

我有通过 maven 运行的 SoapUI 项目。

我想在每次运行后制作 html 报告。如果发生错误,我希望所有错误都出现在报告中。

我为此制作了以下 POM 文件:

        <?xml version="1.0" encoding="UTF-8"?>
    `enter code here`<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.smartbear.samples</groupId>
        <artifactId>soapui-maven3-plugin</artifactId>

        <packaging>jar</packaging>
        <version>1.0-SNAPSHOT</version>
        <name>Maven 3 SoapUI Sample</name>
        <url>http://maven.apache.org</url>

        <repositories>
            <repository>
                <id>repository.jboss.org-public</id>
                <name>JBoss.org Maven repository</name>
                <url>https://repository.jboss.org/nexus/content/groups/public</url>
            </repository>
        </repositories>

        <dependencies>
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>4.11</version>
                <scope>test</scope>
            </dependency>
        </dependencies>

        <pluginRepositories>
            <pluginRepository>
                <id>smartbear-sweden-plugin-repository</id>
                <url>http://www.soapui.org/repository/maven3/</url>
            </pluginRepository>
        </pluginRepositories>

        <build>
            <plugins>
                <plugin>
                    <artifactId>maven-site-plugin</artifactId>
                    <version>3.3</version>
                </plugin>
                <plugin>
                    <groupId>com.smartbear.soapui</groupId>
                    <artifactId>soapui-maven-plugin</artifactId>
                    <version>5.1.2</version>

                    <dependencies>
                        ...some dependencies

                    </dependencies>

           <configuration>
                        <projectFile>${project.basedir}/test-project.xml</projectFile>
                        <outputFolder>${project.basedir}/target/surefire-reports</outputFolder>
                        <junitReport>true</junitReport>
                        <exportAll>true</exportAll>
                        <printReport>true</printReport>                         
              </configuration>

                    <executions>
                        <execution>
                            <id>1st project </id>
                            <phase>test-compile</phase>
                            <goals>
                                <goal>test</goal>
                            </goals>                        
                        </execution>        
                    </executions>

                </plugin>
            </plugins>
        </build>

        <reporting>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-report-plugin</artifactId>
                    <version>2.18.1</version>       
                </plugin>
            </plugins>
        </reporting>   
    </project>

但是通过 mvn 运行项目后 - 没有 html 报告,只有 /surefire-reports 文件夹中的 .txt 和 .xml 文件。

我应该在我的 POM 中修复什么?

谢谢

【问题讨论】:

    标签: maven soapui


    【解决方案1】:

    来自documentation

    reportFormat : 设置创建报告的格式。 仅限专业版。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-11-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-12-23
      • 2019-08-04
      相关资源
      最近更新 更多