解决的问题
1.增加junit构建后报错。
ERROR: Step ‘Publish JUnit test result report’ failed: No test report files were found. Configuration error?
2.随意配置xml导致测试用例增多,且读取xml失败。由于正确的测试报告有固定格式,读取其他的会失败。
前提
1.java maven 项目。
2.有单元测试。
3.jeckins 下载安装,配置,基本使用本文章不做介绍。
开始
1.在项目中增加依赖jar
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.12.4</version>
</dependency>
2.jeckins创建自由风格项目。