maven+junit生成报告
1.基础版–mvn test surefire-report:report
生成site文件夹
<plugin> <artifactId>maven-surefire-plugin</artifactId> <configuration> <testFailureIgnore>true</testFailureIgnore> <!-- --> <includes> <include>**/*Test.java</include> <!-- --> </includes> <excludes> <!-- --> </excludes> </configuration> </plugin> <plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-surefire-report-plugin</artifactId><configuration><showSuccess>false</showSuccess></configuration></plugin>
2. 优化版- mvn clean test
<plugin> <artifactId>maven-surefire-plugin</artifactId> <configuration> <testFailureIgnore>true</testFailureIgnore> <!-- --> <includes> <include>**/*Test.java</include> <!-- --> </includes> <excludes> <!-- --> </excludes> </configuration> </plugin> <plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-surefire-report-plugin</artifactId><configuration><showSuccess>false</showSuccess></configuration></plugin><plugin> <groupId>org.jvnet.maven-antrun-extended-plugin</groupId> <artifactId>maven-antrun-extended-plugin</artifactId> <!-- --> <executions> <execution> <id>test-reports</id> <phase>test</phase> <!-- --> <configuration> <tasks> <junitreport todir="${basedir}/target/surefire-reports"> <fileset dir="${basedir}/target/surefire-reports"> <include name="**/*.xml" /> </fileset> <report format="frames" todir="${basedir}/target/surefire-reports" /> <!-- --> </junitreport> </tasks> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> <dependencies> <dependency> <groupId>org.apache.ant</groupId> <artifactId>ant-junit</artifactId> <version>1.8.0</version> </dependency> <dependency> <groupId>org.apache.ant</groupId> <artifactId>ant-trax</artifactId> <version>1.8.0</version> </dependency> </dependencies> </plugin>
maven+junit生成报告相关推荐
- eclipse和maven在生成报告的时候产生栈溢出
在eclispe的右键项目在Run As -->Run Configurations出现这样的界面 选择项目的名字在右侧的jre中vm aguments中添加-Xms256m -Xmx1024m ...
- maven安装junit_JUnit安装Maven – JUnit 4和JUnit 5
maven安装junit JUnit 4 and JUnit 5 are completely different frameworks. They both serve the same purpo ...
- java自学报告_Vi,Java,Ant和Junit自学报告
vi自学报告 概述 vi 编辑器是所有 Unix 及 Linux 系统下最基本的编辑器,它直接以命令行窗口作为显示界面.vim是vi的升级版,完全兼容vi并提供了一些新的特性.因为vi.vim完全脱离 ...
- UI自动化工具Cypress测试案例、生成报告---windows版
一.提前环境准备 node.js chrome浏览器 二.拉取gitLad上的测试案例代码 例如:拉取下来的文件夹是 -\xbox_test\cypress–0.4 如图: 三.进入拉取代码的根目录 ...
- UI自动化工具Cypress测试案例、生成报告---Linux版
一.提前环境准备 node.js 必须 二.拉取gitLad上的测试案例代码 例如:拉取下来的文件夹是 -/xbox_test/cypress–0.4 如图:目录示范 三.进入拉取代码的根目录 例如: ...
- word模板内容生成报告
maven依赖 <dependency><groupId>org.freemarker</groupId><artifactId>freemarker& ...
- unittest多线程生成报告-----BeautifulReport
原文地址https://www.cnblogs.com/yoyoketang/p/8404204.html 前言 selenium多线程跑用例,这个前面一篇已经解决了,如何生成一个测试报告这个是难点, ...
- HTMLTestRunner 为什么用PyCharm(Eclipse)执行测试成功但无法生成报告
在使用unittest+selenium进行自动化测试的时候,预期输出自动化测试报告,但是始终无法在指定package中输出report.html的报告.但是如果把生成report.html单独写进一 ...
- 【Python】Pandas profiling 生成报告并部署的一站式解决方案
Pandas 库功能非常强大,特别有助于数据分析与处理,并为几乎所有操作提供了完整的解决方案.一种常见的Pandas函数是pandas describe.它向用户提供数据集所有特征的描述性统计摘要,尽 ...
最新文章
- 规则管理_看板管理的五大使用规则
- C#中小数点后保留两位小数,四舍五入的函数及使用方法
- python基础(part4)--语句
- 数字电路与逻辑设计笔记
- 网站 HTTP 升级 HTTPS 完全配置手册
- (转)SQL Server:在 SQL Server 2005 中配置数据库邮件,发送邮件
- 房子过户给子女哪种方式最合适?买卖?赠与?继承?不看就亏大了!
- $stateParams 详解
- 慕课软件质量保证与测试(总目录)
- 有意思的域名Hack网站
- BZOJ3161 : 孤舟蓑笠翁
- Unity使用FBX Exporter导入导出动画及FBX
- MySQL 获取时间函数
- 【文本生成】评价指标:事实一致性Evaluating the Factual Consistency of Abstractive Text Summarization
- MATLAB叠加高斯白噪声
- 7.4 小团队、低成本的管理实践之路
- C语言、Java语言、JavaScript语言的区别
- 案例部署——GlusterFS分布式文件系统群集
- uniapp onReachBottom不触发 原因
- 谷歌浏览器插件最新版 v0.3.0 抓取1688、京东、拼多多 商品图片|文描|视频|规格|属性等信息 并打包下载