【问题标题】:Unit Test Case reporting for WSO2 EIWSO2 EI 的单元测试用例报告
【发布时间】:2020-10-05 11:03:08
【问题描述】:

我正在尝试将单元测试用例集成到我现有的 wso2 代码库中。 有什么方法可以让我们的单元测试用例拥有像 Surefire 报告这样的报告结构。

【问题讨论】:

    标签: wso2 wso2esb maven-surefire-plugin wso2ei


    【解决方案1】:

    你需要在你的pom.xml中添加插件synapse-unit-test-maven-plugin

    <plugin>
      <groupId>org.wso2.maven</groupId>
      <artifactId>synapse-unit-test-maven-plugin</artifactId>
      <version>5.2.27</version>
      <executions>
        <execution>
          <id>synapse-unit-test</id>
          <phase>test</phase>
          <goals>
            <goal>synapse-unit-test</goal>
          </goals>
        </execution>
      </executions>
      <configuration>
        <server>
          <testServerType>${testServerType}</testServerType>
          <testServerHost>${testServerHost}</testServerHost>
          <testServerPort>${testServerPort}</testServerPort>
          <testServerPath>${testServerPath}</testServerPath>
        </server>
        <testCasesFilePath>${project.basedir}/test/${testFile}</testCasesFilePath>
        <mavenTestSkip>${maven.test.skip}</mavenTestSkip>
      </configuration>
    </plugin>
    

    标签&lt;testCasesFilePath&gt;的内容是保存单元测试的路径

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-07-26
      • 2013-06-25
      • 2021-03-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-09-07
      相关资源
      最近更新 更多