
tester
kong-kong
记录流水账
展开
-
hamcrest test
import static org.hamcrest.MatcherAssert.*;import static org.hamcrest.Matchers.*;number test@Test public void mytest(){ int num = 50; /**数值匹配**/ //测试变量是否大于指定值 ...原创 2019-12-27 18:07:50 · 247 阅读 · 0 评论 -
maven 忽略错误,忽略单元测试
单元测试报错,不影响打包 <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> ...原创 2019-12-20 15:53:48 · 2161 阅读 · 0 评论 -
jacoco多模块配置
test是一个projectjunit-test-a 是test下面的一个modulejunit-test-b是test下面的一个modulejunit-test-common是test下面的一个module,用于测试其他module,这里主要是测试junit-test-a,junit-test-btest module的pom ...原创 2019-12-19 15:33:51 · 3933 阅读 · 2 评论 -
jacoco单元测试覆盖率
https://www.eclemma.org/jacoco/https://www.jacoco.org/https://www.jacoco.org/jacoco/trunk/doc/单模块maven配置<plugin> <groupId>org.jacoco</groupId> ...原创 2019-12-19 16:34:54 · 439 阅读 · 0 评论