testng自带的测试报告样式不美观,可以使用testng的一个plugin reportng。具体配置方法如下:
使用intellij idea创建一个maven项目,pom.xml引入reportng,
4.0.0
TestNGProj
TestNGProj
1.0-SNAPSHOT
org.testng
testng
6.8.21
org.uncommons
reportng
1.1.4
test
org.testng
testng
com.google.inject
guice
3.0
test
org.apache.maven.plugins
maven-resources-plugin
2.5
org.apache.maven.plugins
maven-surefire-plugin
2.12
src/main/java/testng.xml