????4 ????

?-4-1-???????????


?????????????????????????????????????????UnitTest??β?????????Svn??
????Jenkins????????????????????????????6??????Svn?д???????????????У????????????????UnitTest??????????????????????
????????????????Sonar???????????????????????????????????????
?????????????????????????Sonar??????review??
????5 ???
????Jenkins???????
??????????????????????PollSCM
????Poll SCM???????????????????SCM?????汾?????????и??????checkout??
????Build periodically??????????????????????care?????????仯????
???????????H/6 * * * *
????Build????
????Goals and options??emma:emma -Dtest=*UnitTest soanr:sonar
?????????
????emma:emma??Add the "emma:emma" goal to your build to generate Emma reports??
????-Dtest=*UnitTest?????????????????UnitTest??β???????
????sonar:sonar????????????????????
??????????Emma Plugin??https://wiki.jenkins-ci.org/display/JENKINS/Emma+Plugin??
?????????????
????????Aggregate downstream test results???????????????е?downstream?????
????????Editable Email Notification????“???”????????????“Unstable”??
???????“Send To Committers”??Check this checkbox to send the email to anyone who checked in code for the last build??
?????????Editable Email Notification????? https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin
?????????ЩJenkins???????????????????????????????
????????????????Maven??
????????????Maven???й??????????pom.xml?н???????jar??????
???????????????????????????Maven??setting.xml???????ò??????????????sonar??????sonar????????????????????????

 

<profile>
<id>sonar</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<!-- EXAMPLE FOR MYSQL -->
<sonar.jdbc.url>
jdbc:mysql://127.0.0.1:3306/sonar?useUnicode=true&characterEncoding=utf8
</sonar.jdbc.url>
<sonar.jdbc.driverClassName>com.mysql.jdbc.Driver</sonar.jdbc.driverClassName>
<sonar.jdbc.username>sonar</sonar.jdbc.username>
<sonar.jdbc.password>sonar</sonar.jdbc.password>
<!-- SERVER ON A REMOTE HOST -->
<sonar.host.url>http:/127.0.0.1:9000</sonar.host.url>
</properties>
</profile>

????Mockito???????
???????е????????MockitoTestContext????