reportng代替testng的默认报告——pom设置
2024-10-20 18:59:13
既然是maven项目,直接关注pom设置。
这篇写得很清楚了:maven+testng+reportng的pom设置
强调一点的是,guice必须依赖,就因这个卡了大半天。
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.9.9</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.uncommons</groupId>
<artifactId>reportng</artifactId>
<version>1.1.4</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
</exclusion>
</exclusions>
</dependency> <dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>3.0</version>
<scope>test</scope>
</dependency>
--------------------------------分割线--------------------------------------
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19</version>
<configuration>
<suiteXmlFiles>
<file>src/test/testng_Cases.xml</file>
</suiteXmlFiles>
<properties>
<property>
<name>usedefaultlisteners</name>
<value>false</value>
</property>
<property>
<name>listener</name>
<value>org.uncommons.reportng.HTMLReporter, org.uncommons.reportng.JUnitXMLReporter</value>
</property>
</properties>
<!-- <workingDirectory>target/</workingDirectory> -->
</configuration>
</plugin>
</plugins>
</build>
最新文章
- ubuntu卸载安装mysql
- webpack使用tree shaking的问题。及关于UglifyJs不支持ES6的解决方案。
- [转]easyui tree 模仿ztree 使用扁平化加载json
- 【Todo】Lucene系统学习
- 网页上的JS call Unity3d里的function——SendMessage
- windows服务怎么向应用程序发消息(部署在同一台机,非SCOKET)
- 解决tomcat开始出现in production environments was not found on the java.library.path:xxx
- Jenkins+github+maven+git+linux
- Thymeleaf 3.0 专题
- [Swift]LeetCode867. 转置矩阵 | Transpose Matrix
- IO多路复用三种方式select/poll/epoll
- React(v16.8.4)生命周期详解
- js 获取随机数 Math.random()
- centos7下安装配置redis
- 两个关于URL解析的例子
- cdoj842-天下归晋 【树状数组】
- 虚拟机中的Linux安装VMware Tools的方法
- jdk的安装 打包jar 运行jar
- MySQL不能启动 Can't start server : Bind on unix socket: Permission denied
- python_魔法方法(四):属性访问