junit 单元测试覆盖率 插件

 

 

junit 单元测试覆盖率 插件

<!-- Maven jacoco begin -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
				<version>2.10</version> 
				<configuration>
					<testFailureIgnore>true</testFailureIgnore>
					<argLine>${argLine}</argLine>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.jacoco</groupId>
				<artifactId>jacoco-maven-plugin</artifactId>
				<version>0.7.5.201505241946</version>
					<executions>
					<execution>
						<goals>
							<goal>prepare-agent</goal>
						</goals>
					</execution>
					<execution>
						<id>report</id>
						<phase>prepare-package</phase>
						<goals>
							<goal>report</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<!-- Maven jacoco end -->

 

 

_NA_UT 配置

mvn clean test
curl http://127.0.0.1/eproject/rest/qualityBuild/synJob?code=jenkins\&jobName=${JOB_NAME}

  

 

 

 

你可能感兴趣的:(JUnit,测试,插件,覆盖率,单元)