WSO2 EI的单元测试用例报告



我正在尝试将单元测试用例集成到我现有的wso2代码库中。我们有没有办法为我们的单元测试用例建立一个类似Surefire报告的报告结构。

您需要在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>的内容是保存单元测试的路径

相关内容

最新更新