天天看點

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}      

捐助開發者

在興趣的驅動下,寫一個

免費

的東西,有欣喜,也還有汗水,希望你喜歡我的作品,同時也能支援一下。 當然,有錢捧個錢場(右上角的愛心标志,支援支付寶和PayPal捐助),沒錢捧個人場,謝謝各位。

junit 單元測試覆寫率 插件
junit 單元測試覆寫率 插件
junit 單元測試覆寫率 插件

 謝謝您的贊助,我會做的更好!

繼續閱讀