博客园  :: 首页  :: 联系 :: 订阅 订阅  :: 管理

随笔分类 -  Sonar

摘要:I've recently setup and successfully got Sonar and Jacoco running together. Since I'm recent with the topic, I figured I'd check on stackoverflow for similar issues and help out. I am getting results from Jacoco, but found you had to explicitly set the following parameters in addition to 阅读全文

posted @ 2013-03-05 17:08 Bruce Zhang 阅读(8196) 评论(0) 推荐(0)

摘要:首先看看一些文章:http://www.freshblurbs.com/blog/2005/05/19/explaining-java-lang-outofmemoryerror-permgen-space.htmlhttp://stackoverflow.com/questions/1124131/what-can-be-done-with-permgen-out-of-space-exception-in-tomcat-spring-hibernat相关案例:(1)有些人是在SUN JDK+Tomcat 5.5.20运行服务的时,服务器跑几天后就会挂掉,并报java.lang.OutOfM 阅读全文

posted @ 2013-02-05 10:18 Bruce Zhang 阅读(642) 评论(0) 推荐(0)

摘要:背景:我用Jenkins做CI,并同时加Sonar做单元测试和质量扫描。大家都知道,让Maven过滤掉单元测试一般会使用 -Dmaven.test.skip=true(即不编译单元测试代码,也不运行单元测试)。但是如果直接用-Dmaven.test.skip=true会导致Sonar也不跑单元测试。技巧:使用-Dtest -DfailIfNoTests=false 让单元测试仅仅在Sonar扫描时启动。解释:下面是官方对于“test”和“failIfNoTests”的解释:testString-Specify this parameter to run individual tests by 阅读全文

posted @ 2013-01-17 18:39 Bruce Zhang 阅读(2942) 评论(0) 推荐(0)