【发布时间】:2020-10-05 11:03:08
【问题描述】:
我正在尝试将单元测试用例集成到我现有的 wso2 代码库中。 有什么方法可以让我们的单元测试用例拥有像 Surefire 报告这样的报告结构。
【问题讨论】:
标签: wso2 wso2esb maven-surefire-plugin wso2ei
我正在尝试将单元测试用例集成到我现有的 wso2 代码库中。 有什么方法可以让我们的单元测试用例拥有像 Surefire 报告这样的报告结构。
【问题讨论】:
标签: wso2 wso2esb maven-surefire-plugin wso2ei
你需要在你的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>
标签<testCasesFilePath>的内容是保存单元测试的路径
【讨论】: