Maven + Clover
Good Tools : 2008/03/18 18:01
설치하기
- 빌드 도구에 따라 설치하는 방법이 다르다.
- Maven2에 설치하려면 플러그인을 pom,xml에 설정해주면 된다.
- 라이선스 파일을 받아야한다.(다른 프로젝트나 계정의 라이선스도 동작하는지 확인.)
설정하기
- settings.xml에 atlassian의 maven-clover 플러그인을 받을 수 있는 repository를 등록해준다.
<settings>
<pluginGroups>
<pluginGroup>com.atlassian.maven.plugins</pluginGroup>
</pluginGroups>
<profiles>
<profile>
<id>dev</id>
<pluginRepositories>
<pluginRepository>
<id>atlassian-m2-repository</id>
<name>Atlassian Maven 2.x Repository</name>
<url>http://repository.atlassian.com/maven2</url>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>dev</activeProfile>
</activeProfiles>
</settings>
- pom.xml에 플러그인을 설정한다.
<build>
<plugins>
<plugin>
<artifactId>maven-clover-plugin</artifactId>
<groupId>com.atlassian.maven.plugins</groupId>
<configuration>
<licenseLocation>clover.license</licenseLocation>
<generatePdf>false</generatePdf>
<generateXml>true</generateXml>
<generateHtml>true</generateHtml>
</configuration>
</plugin>
</plugins>
</build>
사용하기
- mvn clover:instrument clover:clvoer
- 테스트 커버리지를 강제할 수 있다.
- 생성할 리포트를 선택할 수 있다.
- Instrument 대상이 되는 자바 파일들을 필터링 할 수 있다.
참조
'Good Tools' 카테고리의 다른 글
| SpringSource Application Manager Suite (2) | 2008/04/22 |
|---|---|
| Blip.tv 좋았어!! (2) | 2008/04/15 |
| Commit comment template (0) | 2008/04/14 |
| 이클립스 SVN 플러그인 Subversive 설치 (0) | 2008/04/04 |
| Spring Tool Suite: Knowledge Base (2) | 2008/03/20 |
| Maven + Clover (0) | 2008/03/18 |
| Tomcat 6, MySQL에 JIRA(WAR/EAR 버전) 설치하기 (6) | 2008/03/05 |
| Bamboo 멋쟁이 - CI 와 테스트 (0) | 2008/03/04 |
| Eclipse의 막강한 Ctrl + h (4) | 2008/02/15 |
| Eclipse Working Set 사용하기 (5) | 2008/02/05 |
| Eclipse에서 Static Import 편하게 쓰려면 (8) | 2008/01/24 |






