既然是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>

最新文章

  1. ubuntu卸载安装mysql
  2. webpack使用tree shaking的问题。及关于UglifyJs不支持ES6的解决方案。
  3. [转]easyui tree 模仿ztree 使用扁平化加载json
  4. 【Todo】Lucene系统学习
  5. 网页上的JS call Unity3d里的function——SendMessage
  6. windows服务怎么向应用程序发消息(部署在同一台机,非SCOKET)
  7. 解决tomcat开始出现in production environments was not found on the java.library.path:xxx
  8. Jenkins+github+maven+git+linux
  9. Thymeleaf 3.0 专题
  10. [Swift]LeetCode867. 转置矩阵 | Transpose Matrix
  11. IO多路复用三种方式select/poll/epoll
  12. React(v16.8.4)生命周期详解
  13. js 获取随机数 Math.random()
  14. centos7下安装配置redis
  15. 两个关于URL解析的例子
  16. cdoj842-天下归晋 【树状数组】
  17. 虚拟机中的Linux安装VMware Tools的方法
  18. jdk的安装 打包jar 运行jar
  19. MySQL不能启动 Can't start server : Bind on unix socket: Permission denied
  20. python_魔法方法(四):属性访问

热门文章

  1. vue components
  2. test20180921 量子纠缠
  3. leetcode:Pascal&#39;s Triangle II【Python版】
  4. SQL Server 中关于EXCEPT和INTERSECT的用法
  5. BZOJ 1845三角形面积并
  6. Tensoflw.js - 01 - 安装与入门(中文注释)
  7. Spring 框架中 ModelAndView、Model、ModelMap 的区别
  8. Spring Cloud 入门 之 Hystrix 篇(四)
  9. SSH pts 虚拟终端
  10. typedef与前向声明